Browse Source

Use configurable `HOST` to define `ORIGIN`

master
buttercat1791 1 year ago
parent
commit
3b1c74b6b4
  1. 2
      Dockerfile.next
  2. 2
      Dockerfile.prod

2
Dockerfile.next

@ -9,7 +9,7 @@ WORKDIR /app @@ -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" ]

2
Dockerfile.prod

@ -9,7 +9,7 @@ WORKDIR /app @@ -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" ]

Loading…
Cancel
Save