diff --git a/Dockerfile b/Dockerfile index 10f0938..a36e6b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,10 +45,10 @@ RUN nimble build --passL:-L/usr/lib \ RUN strip -s /app/nim_censor_bot && \ strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot -# Our binary lives in this image -FROM gcr.io/distroless/base:latest +FROM scratch COPY --from=builder /app/nim_censor_bot / +COPY --from=builder /etc/ssl/certs /etc/ssl/certs ENV DB_HOST="/data/censordata.db"