From 9ba1334e2b4d9191d75e2af83d8366fda4299c29 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Sun, 6 Dec 2020 06:41:31 -0500 Subject: [PATCH] ui needs to be receptive to $PORT --- hack/dockerfiles/ui.Dockerfile | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/dockerfiles/ui.Dockerfile b/hack/dockerfiles/ui.Dockerfile index f4e4a00..be2ba82 100644 --- a/hack/dockerfiles/ui.Dockerfile +++ b/hack/dockerfiles/ui.Dockerfile @@ -22,5 +22,5 @@ FROM base AS output COPY --from=builder /src . -EXPOSE 3000 +ENV PORT=6601 CMD yarn ui:prod diff --git a/package.json b/package.json index e410781..39b3b9f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "test": "jest", "ui": "next dev -p 6601", "ui:build": "next build", - "ui:prod": "next start" + "ui:prod": "cross-env next start -p ${PORT:-3000}" }, "dependencies": { "chroma-js": "^2.1.0",