Skip to content

Commit e626f53

Browse files
committed
First import. List of nodes pulled from one of our internal projects.
1 parent b5ca4b4 commit e626f53

File tree

4 files changed

+94
-0
lines changed

4 files changed

+94
-0
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Dockerfile
2+
LICENSE
3+
README.md

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ubuntu
2+
3+
# Install node and npm latest versions.
4+
RUN apt-get update -qq && apt-get install -qqy software-properties-common
5+
RUN add-apt-repository -y ppa:chris-lea/node.js
6+
RUN apt-get update -qq && apt-get install -qqy nodejs
7+
RUN npm install -g npm
8+
9+
# Install a dependency for PhantomJS.
10+
RUN sudo apt-get install -qqy libfontconfig
11+
12+
RUN mkdir /usr/app
13+
WORKDIR /usr/app
14+
15+
# Install a bunch of node modules that are commonly used.
16+
ADD package.json .
17+
RUN npm install
18+
RUN rm package.json

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
This is the source of the Docker image
2+
[bayesimpact/react-base](https://hub.docker.com/r/bayesimpact/react-base/).
3+
4+
It is used to speed up setup when developping a project using React with npm.
5+
It prepares a container with node and npm latest versions as well as a good
6+
deal of node modules pre-installed.
7+
8+
Use it as a base and put your actual application in `/usr/app`.
9+
10+
If you use this image for production (but you should compile your React
11+
anyway), beware that there might be many node modules that you won't need at
12+
all.

package.json

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"devDependencies": {
3+
"babel-core": "6.3.26",
4+
"babel-eslint": "^5.0.0",
5+
"babel-loader": "6.2.0",
6+
"babel-preset-es2015": "6.3.13",
7+
"babel-preset-react": "6.3.13",
8+
"babel-preset-stage-0": "6.3.13",
9+
"bower-webpack-plugin": "*",
10+
"chai": "^3.4.1",
11+
"copyfiles": "^0.2.1",
12+
"css-loader": "^0.18.0",
13+
"eslint": "^1.10.3",
14+
"eslint-loader": "^1.0.0",
15+
"eslint-plugin-react": "^3.16.1",
16+
"file-loader": "^0.8.5",
17+
"glob": "^5.0.15",
18+
"isparta-loader": "^1.0.0",
19+
"karma": "^0.13.22",
20+
"karma-chai": "^0.1.0",
21+
"karma-coverage": "^0.5.5",
22+
"karma-mocha": "^0.2.2",
23+
"karma-mocha-reporter": "^2.0.0",
24+
"karma-phantomjs-launcher": "^1.0.0",
25+
"karma-phantomjs-shim": "^1.2.0",
26+
"karma-sourcemap-loader": "^0.3.7",
27+
"karma-webpack": "^1.7.0",
28+
"lodash": "^4.6.1",
29+
"minimist": "^1.2.0",
30+
"mocha-junit-reporter": "^1.9.1",
31+
"null-loader": "^0.1.1",
32+
"open": "0.0.5",
33+
"phantomjs-prebuilt": "^2.1.5",
34+
"react-addons-test-utils": "^0.14.7",
35+
"react-hot-loader": "^1.2.9",
36+
"redux-devtools": "^3.0.1",
37+
"redux-devtools-dock-monitor": "^1.0.1",
38+
"redux-devtools-log-monitor": "^1.0.1",
39+
"rimraf": "^2.5.0",
40+
"style-loader": "^0.13.0",
41+
"url-loader": "^0.5.7",
42+
"webpack": "^1.12.9",
43+
"webpack-dev-server": "^1.14.0"
44+
},
45+
"dependencies": {
46+
"es6-promise": "^3.1.2",
47+
"exports-loader": "^0.6.3",
48+
"imports-loader": "^0.6.5",
49+
"json-loader": "^0.5.4",
50+
"normalize.css": "^3.0.3",
51+
"react": "^0.14.7",
52+
"react-dom": "^0.14.7",
53+
"react-geosuggest": "^1.19.0",
54+
"react-redux": "^4.0.5",
55+
"react-router": "^2.0.0",
56+
"react-router-redux": "^4.0.0",
57+
"redux": "^3.3.1",
58+
"redux-thunk": "^1.0.3",
59+
"underscore": "^1.8.3"
60+
}
61+
}

0 commit comments

Comments
 (0)