fix(Dockerfile): package.json isn't copied before running yarn install

This commit is contained in:
Dawid Wysokiński 2021-11-11 09:08:12 +01:00
parent bef5199191
commit 93969ec799
Signed by: Kichiyaki
GPG Key ID: EF14026D247EB867
2 changed files with 6 additions and 1 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
node_modules
.idea
public
.cache
.github

View File

@ -20,8 +20,8 @@ RUN apk --no-cache add shadow \
file \
pkgconf
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn global add gatsby-cli@3.3.0
COPY yarn.lock ./
RUN yarn
COPY . ./
RUN yarn build