Skip to content

Commit

Permalink
updated Dockerfile with my fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
initcron authored Dec 30, 2020
1 parent cd570f3 commit 3968374
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions result/Dockerfile
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

0 comments on commit 3968374

Please sign in to comment.