14
Dockerfile
14
Dockerfile
@@ -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"]
|
Reference in New Issue
Block a user