Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Change the dest of the COPY instruction to absolute path.
  • Loading branch information
sorairolake committed Mar 21, 2020
1 parent 7488d99 commit 6c56fba
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,12 +1,14 @@
FROM node:10.19-alpine

WORKDIR /app
ENV PROJECT_ROOTDIR /app

COPY package.json yarn.lock ./
WORKDIR $PROJECT_ROOTDIR

COPY package.json yarn.lock $PROJECT_ROOTDIR

RUN yarn install

COPY . .
COPY . $PROJECT_ROOTDIR

EXPOSE 3000
ENV HOST 0.0.0.0
Expand Down

0 comments on commit 6c56fba

Please sign in to comment.