File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change 1
- # angular-fullstack-dockerfile
1
+ FROM node:latest
2
2
3
- This is the Docker image for the node.js yeoman generator angular-fullstack.
3
+ MAINTAINER Jeremymarshall
4
4
5
- As the generator requires node and several npm modules this image bakes in the dependencies to reduce the time taken to deploy applications.
5
+ LABEL "version" = "4.1.1"
6
6
7
- # # branches available
8
- ```
9
- docker pull generatorangularfullstack/angular-fullstack-dist:latest
10
- ```
7
+ RUN npm install -g node-gyp
11
8
12
- - latest
13
- - 2.0.8
14
- - 3.3.0
15
- - 3.7.4
16
- - 3.7.5
17
- - 4.0.4
18
- - 4.1.1
19
- - alpine.4.0.4
20
- - alpine.4.1.1
9
+ RUN mkdir -p /usr/src/app
10
+ WORKDIR /usr/src/app
11
+
12
+ ENV NODE_PATH=/usr/local/lib/node_modules/:/usr/local/lib NODE_ENV=production
13
+
14
+ COPY *.json /usr/src/app/
15
+ RUN npm install
16
+
17
+ ONBUILD COPY package.json /usr/src/app/
18
+ ONBUILD RUN npm install
19
+ ONBUILD COPY . /usr/src/app
20
+
21
+ CMD [ "npm" , "start" ]
22
+
23
+ EXPOSE 8080
21
24
22
- Alpine branches aren't that much smaller as some modules need python and a build chain to build.
You can’t perform that action at this time.
0 commit comments