Skip to content

Commit

Permalink
modify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
inductor committed Jan 18, 2020
1 parent 9810745 commit 69ac0eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
node_modules

8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM node:alpine

WORKDIR /omegasisters-webpage

# Cache node packages
ADD package.json /omegasisters-webpage
ADD yarn.lock /omegasisters-webpage
# ADD doesn't make cache so you should use COPY
COPY package.json yarn.lock ./

RUN yarn

ADD . /omegasisters-webpage
COPY . .

ENTRYPOINT ["yarn", "start:docker"]

0 comments on commit 69ac0eb

Please sign in to comment.