Skip to content

Commit

Permalink
release: allow --expose to be enabled in the container image
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Nov 7, 2024
1 parent f170252 commit 84921cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/Dockerfile.release-docker
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ COPY target/release/xs /usr/local/bin/xs
COPY target/release/scru128 /usr/bin/scru128
COPY xs.nu /app/xs.nu

EXPOSE 8080

CMD ["xs", "serve", "/app/store"]

# Conditional CMD to append --expose based on XS_EXPOSE environment variable
ENTRYPOINT ["/bin/sh", "-c", 'if [ -n "$XS_EXPOSE" ]; then exec xs serve /app/store --expose "$XS_EXPOSE"; else exec xs serve /app/store; fi']

0 comments on commit 84921cf

Please sign in to comment.