From 60f1ea933901ed5b1fd13418a02bf44fde39c23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20D=C3=B6rfler?= Date: Wed, 3 Jun 2020 09:08:46 +0200 Subject: [PATCH] simplified docker build --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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