Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

fix(#344): make production serve work #357

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

fix(#344): make production serve work #357

wants to merge 4 commits into from

Conversation

pmespresso
Copy link
Contributor

@pmespresso pmespresso commented May 15, 2020

fixes comment in #344 (comment):
docker run nomidot-front:v0.5.0 should just run the image at port 9000 now, no errors.

main changes:
in Dockerfile:

  1. added a EXPOSE 9000 because gatsby develop (local env) exposes port 8000, but gatsby serve (staging & production) exposes port 9000

  2. added yarn install --production doesn't install dev dependcies.

  3. added a COPY ./public . so the build gets copied into the container

pushed the image to: eu.gcr.io/test-installations-222013/nomidot-front@sha256:f8d4983c94471b4b99d109f258e08aade5c4e5a8ada8cd5a55f2cba6246654c1

@pmespresso pmespresso requested a review from fevo1971 May 15, 2020 09:21
@pmespresso pmespresso changed the title fix: make production serve work fix(#344): make production serve work May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant