From b728f1d2acc0e7cccb7ea5fc27af74f64360f624 Mon Sep 17 00:00:00 2001 From: Thomas Cardin <49320132+ThomasCardin@users.noreply.github.com> Date: Sat, 25 Nov 2023 19:43:34 -0500 Subject: [PATCH] Changed scratch to alpine for final image (#81) * added /bin/sh to dockerfiles * changed scratch to alpine for final image * removed unnecessary COPY from dockerfiles --- cmd/calidum-rotae-service/Dockerfile | 4 +--- cmd/discord-provider/Dockerfile | 4 +--- cmd/email-provider/Dockerfile | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/cmd/calidum-rotae-service/Dockerfile b/cmd/calidum-rotae-service/Dockerfile index 614f92f..ebe451f 100644 --- a/cmd/calidum-rotae-service/Dockerfile +++ b/cmd/calidum-rotae-service/Dockerfile @@ -20,10 +20,8 @@ RUN addgroup -S cedille-group && \ adduser -S cedille-user -G cedille-group # Step 2 - import necessary files to run program. -FROM scratch +FROM alpine -COPY --from=builder /bin/sh /bin/sh -COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /app/calidum_rotae_service /calidum_rotae_service COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt diff --git a/cmd/discord-provider/Dockerfile b/cmd/discord-provider/Dockerfile index 74da360..2e5d8c9 100644 --- a/cmd/discord-provider/Dockerfile +++ b/cmd/discord-provider/Dockerfile @@ -20,10 +20,8 @@ RUN addgroup -S cedille-group && \ adduser -S cedille-user -G cedille-group # Step 2 - import necessary files to run program. -FROM scratch +FROM alpine -COPY --from=builder /bin/sh /bin/sh -COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /app/discord_provider /discord_provider COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt diff --git a/cmd/email-provider/Dockerfile b/cmd/email-provider/Dockerfile index 87f9a6c..16f1714 100644 --- a/cmd/email-provider/Dockerfile +++ b/cmd/email-provider/Dockerfile @@ -20,10 +20,8 @@ RUN addgroup -S cedille-group && \ adduser -S cedille-user -G cedille-group # Step 2 - import necessary files to run program. -FROM scratch +FROM alpine -COPY --from=builder /bin/sh /bin/sh -COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /app/email_provider /email_provider COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt