Skip to content

Commit dfe1a2b

Browse files
fix Dockerfile
1 parent 85a451b commit dfe1a2b

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

Dockerfile

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
# angular-fullstack-dockerfile
1+
FROM node:latest
22

3-
This is the Docker image for the node.js yeoman generator angular-fullstack.
3+
MAINTAINER Jeremymarshall
44

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"
66

7-
## branches available
8-
```
9-
docker pull generatorangularfullstack/angular-fullstack-dist:latest
10-
```
7+
RUN npm install -g node-gyp
118

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
2124

22-
Alpine branches aren't that much smaller as some modules need python and a build chain to build.

0 commit comments

Comments
 (0)