certrs
Some checks failed
deploy / deploy (push) Failing after 5s

This commit is contained in:
2024-11-13 11:42:39 +03:00
parent b471c66209
commit d0e70a7783
2 changed files with 18 additions and 3 deletions

View File

@@ -45,16 +45,26 @@ RUN cargo build --release
# Final stage
FROM debian:bookworm-slim
# Install runtime dependencies
# Install runtime dependencies and CA certificates
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
libssl3 \
libtiff6 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates
# Set environment variables
ENV RUST_BACKTRACE=1
ENV RUST_LOG=warn
# Copy the build artifact from the build stage
COPY --from=build /quoter/target/release/quoter .
# Create healthcheck
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost:8080/ || exit 1
# Set the startup command
CMD ["./quoter"]