Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
image: frontend
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "8000:8000"
depends_on:
Expand Down
24 changes: 14 additions & 10 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
FROM node:12-buster
FROM node:alpine

RUN npm install --global gatsby-cli

WORKDIR /app
# Also exposing VSCode debug ports
EXPOSE 8000

COPY package*.json /app/
RUN \
apk add --no-cache python make g++ && \
apk add vips-dev fftw-dev --update-cache \
--repository http://dl-3.alpinelinux.org/alpine/edge/community \
--repository http://dl-3.alpinelinux.org/alpine/edge/main \
&& rm -fR /var/cache/apk/*

RUN npm install
RUN npm install -g gatsby-cli

WORKDIR /app
COPY ./package.json .
RUN yarn install && yarn cache clean
COPY . .

EXPOSE 8000

CMD ["gatsby", "develop", "-H", "0.0.0.0"]
CMD ["yarn", "develop", "-H", "0.0.0.0" ]