forked from schoolofdevops/example-voting-app
-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
FROM node:8.9-alpine | ||
FROM node:8.16.0-alpine | ||
|
||
RUN mkdir -p /app | ||
WORKDIR /app | ||
WORKDIR /app | ||
|
||
RUN npm install -g nodemon | ||
RUN npm config set registry https://registry.npmjs.org | ||
COPY package.json /app/package.json | ||
RUN npm install \ | ||
&& npm ls \ | ||
&& npm cache clean --force \ | ||
&& mv /app/node_modules /node_modules | ||
COPY . /app | ||
COPY . . | ||
|
||
ENV PORT 80 | ||
EXPOSE 80 | ||
RUN npm install && \ | ||
npm audit fix | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["node", "server.js"] | ||
CMD npm start |