Skip to content

Commit

Permalink
Merge pull request #10 from abehnamfard/master
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
hagopj13 authored Apr 9, 2020
2 parents 3f94222 + 1e3195d commit ccf4b76
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM node:12.13-alpine
FROM node:alpine

RUN mkdir -p /usr/src/node-app
RUN mkdir -p /usr/src/node-app && chown -R node:node /usr/src/node-app

WORKDIR /usr/src/node-app

COPY package.json yarn.lock ./

USER node

RUN yarn install --pure-lockfile

COPY . .
COPY --chown=node:node . .

EXPOSE 3000

0 comments on commit ccf4b76

Please sign in to comment.