Use scratch container instead of using distroless

We save more storage by moving to scratch

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-04-25 12:32:20 +05:30
parent 3ff60f8c18
commit 28e703b563
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -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"