simplified docker build
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Stephan Dörfler 2020-06-03 09:08:46 +02:00
parent a3ba77aa38
commit 60f1ea9339
1 changed files with 2 additions and 5 deletions

View File

@ -1,12 +1,9 @@
FROM node:14.3 as build FROM node:14.3 as build
WORKDIR /app WORKDIR /app
COPY package.json ./
RUN yarn install
RUN yarn global add gatsby-cli
COPY . ./ COPY . ./
RUN yarn install -s
RUN yarn global add gatsby-cli
RUN gatsby build RUN gatsby build
FROM gatsbyjs/gatsby FROM gatsbyjs/gatsby