mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-06 11:14:58 -06:00
Expose port via ARG PORT
This commit is contained in:
@@ -26,9 +26,10 @@ RUN cargo build --release
|
|||||||
# Run the server application
|
# Run the server application
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ARG PORT=5800
|
||||||
|
EXPOSE ${PORT}
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
EXPOSE $PORT
|
|
||||||
COPY --from=builder-demo /build/demo/target/release/demo ./demo
|
COPY --from=builder-demo /build/demo/target/release/demo ./demo
|
||||||
COPY --from=builder-server /build/server/target/release/dynamic-preauth ./dynamic-preauth
|
COPY --from=builder-server /build/server/target/release/dynamic-preauth ./dynamic-preauth
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user