Skip to content

Commit 6f5ba61

Browse files
committed
updates Dockerfile to support multi-platform builds and changes exposed port from 8000 to 4000
1 parent e670070 commit 6f5ba61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ COPY . .
2323
RUN cargo build --release --workspace
2424

2525
# Stage 2: Minimal runtime image
26-
FROM debian:bullseye-slim
26+
FROM --platform=${BUILDPLATFORM} debian:bullseye-slim
2727

2828
# Install Bash to support entrypoint.sh
2929
RUN apt-get update && apt-get install -y bash && rm -rf /var/lib/apt/lists/*
@@ -43,6 +43,6 @@ RUN chmod +x /entrypoint.sh && chown -R appuser:appuser /app /entrypoint.sh
4343

4444
USER appuser
4545

46-
EXPOSE 8000
46+
EXPOSE 4000
4747

4848
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)