Skip to content

Commit

Permalink
Changed scratch to alpine for final image (#81)
Browse files Browse the repository at this point in the history
* added /bin/sh to dockerfiles

* changed scratch to alpine for final image

* removed unnecessary COPY from dockerfiles
  • Loading branch information
ThomasCardin authored Nov 26, 2023
1 parent 256cc00 commit b728f1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions cmd/calidum-rotae-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/discord-provider/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions cmd/email-provider/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b728f1d

Please sign in to comment.