From efed7e3c2baf1ac3741edf27e105c2adbc3f364d Mon Sep 17 00:00:00 2001 From: BeauAgst <10343831+BeauAgst@users.noreply.github.com> Date: Sat, 11 Feb 2023 09:37:44 +0000 Subject: [PATCH] Modify default exposed port (#1681) * Modify default exposed port * Update changelog --- CHANGELOG.md | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2afe206bb..290257c26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Set the exposed port as an environment variable (`PORT`) in `Dockerfile` - Upgraded `chart.js` from version `4.0.1` to `4.2.0` - Upgraded `prettier` from version `2.8.1` to `2.8.4` diff --git a/Dockerfile b/Dockerfile index 33ef2d95f..cdebe275d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,5 +57,5 @@ RUN apt update && apt install -y \ COPY --from=builder /ghostfolio/dist/apps /ghostfolio/apps WORKDIR /ghostfolio/apps/api -EXPOSE 3333 +EXPOSE ${PORT:-3333} CMD [ "yarn", "start:prod" ]