Skip to content

Commit

Permalink
Merge pull request #227 from codeforsanjose/docker-fix
Browse files Browse the repository at this point in the history
Fix dockerfile
  • Loading branch information
darpham authored Jul 16, 2021
2 parents 5a21938 + e068773 commit 18f607d
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 18f607d

Please sign in to comment.