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

pull/29/head
Dawid Wysokiński 11 months ago
parent bef5199191
commit 93969ec799
Signed by: Kichiyaki
GPG Key ID: EF14026D247EB867
  1. 5
      .dockerignore
  2. 2
      Dockerfile

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

@ -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

Loading…
Cancel
Save