diff --git a/Dockerfile b/Dockerfile index 8e38477..05c1a67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,9 @@ FROM node:14.3 as build WORKDIR /app -COPY package.json ./ -RUN yarn install - -RUN yarn global add gatsby-cli - COPY . ./ +RUN yarn install -s +RUN yarn global add gatsby-cli RUN gatsby build FROM gatsbyjs/gatsby