Update Dockerfile to add SSL key directory and change port

This commit is contained in:
2025-11-24 12:53:44 +00:00
committed by GitHub
parent 5f0ba87967
commit fd3cedd1f3

View File

@@ -38,7 +38,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN useradd -m -u 1000 -s /bin/bash carbon RUN useradd -m -u 1000 -s /bin/bash carbon
WORKDIR /app WORKDIR /app
RUN mkdir -p /app/www /app/log /app/ssl/cert && \ RUN mkdir -p /app/www /app/log /app/ssl/cert /app/ssl/key && \
chown -R carbon:carbon /app chown -R carbon:carbon /app
COPY --from=builder /build/server /app/ COPY --from=builder /build/server /app/
@@ -52,9 +52,9 @@ RUN chown -R carbon:carbon /app
USER carbon USER carbon
EXPOSE 8080 443 EXPOSE 8080 8443
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/ || exit 1 CMD curl -f http://localhost:8080/ || exit 1
CMD ["./server"] CMD ["./server"]