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:
parent
3ff60f8c18
commit
28e703b563
1 changed files with 2 additions and 2 deletions
|
@ -45,10 +45,10 @@ RUN nimble build --passL:-L/usr/lib \
|
||||||
RUN strip -s /app/nim_censor_bot && \
|
RUN strip -s /app/nim_censor_bot && \
|
||||||
strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot
|
strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot
|
||||||
|
|
||||||
# Our binary lives in this image
|
FROM scratch
|
||||||
FROM gcr.io/distroless/base:latest
|
|
||||||
|
|
||||||
COPY --from=builder /app/nim_censor_bot /
|
COPY --from=builder /app/nim_censor_bot /
|
||||||
|
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
|
||||||
|
|
||||||
ENV DB_HOST="/data/censordata.db"
|
ENV DB_HOST="/data/censordata.db"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue