Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Walek authored and Ryan Walek committed Mar 12, 2021
1 parent 04d454c commit e068773
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ RUN apk update && apk add build-base autoconf automake libtool pkgconfig nasm
# Add the package.json file and build the node_modules folder
WORKDIR /app
COPY ./package*.json ./
RUN mkdir node_modules && yarn install
RUN mkdir node_modules
RUN apk update && apk add yarn python g++ make && rm -rf /var/cache/apk/*
RUN yarn install

# Get a clean image with gatsby-cli and the pre-built node modules
FROM node:12-alpine
Expand Down

0 comments on commit e068773

Please sign in to comment.