From 3b1c74b6b49d146ad5d7e7e8f6fa88ac8d086a62 Mon Sep 17 00:00:00 2001 From: buttercat1791 Date: Thu, 6 Mar 2025 08:50:23 -0600 Subject: [PATCH] Use configurable `HOST` to define `ORIGIN` --- Dockerfile.next | 2 +- Dockerfile.prod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.next b/Dockerfile.next index f556dd5..e3924ba 100644 --- a/Dockerfile.next +++ b/Dockerfile.next @@ -9,7 +9,7 @@ WORKDIR /app COPY --from=build /app/src/build/ ./build/ COPY --from=build /app/src/import_map.json . -ENV ORIGIN=https://next-alexandria.gitcitadel.eu +ENV ORIGIN=https://$HOST EXPOSE 3000 CMD [ "deno", "run", "--allow-env", "--allow-read", "--allow-net", "--import-map=import_map.json", "./build/index.js" ] diff --git a/Dockerfile.prod b/Dockerfile.prod index 771073c..e0760f8 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -9,7 +9,7 @@ WORKDIR /app COPY --from=build /app/src/build/ ./build/ COPY --from=build /app/src/import_map.json . -ENV ORIGIN=https://alexandria.gitcitadel.eu +ENV ORIGIN=hhttps://$HOST EXPOSE 3000 CMD [ "deno", "run", "--allow-env", "--allow-read", "--allow-net", "--import-map=import_map.json", "./build/index.js" ]