Skip to content

Commit

Permalink
Update Dockerfile to include SSL certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 committed Feb 4, 2024
1 parent fcea9e5 commit 2028456
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ COPY . .
RUN --mount=type=cache,target=/src/builder/target/ cargo build --target=$(cat /tmp/arch)-unknown-linux-musl --release && \
cp target/$(cat /tmp/arch)-unknown-linux-musl/release/modmail /tmp/modmail

FROM alpine:latest AS get-ssl

FROM scratch

WORKDIR /src/app

COPY --from=builder /tmp/hello .
COPY --from=get-ssl /etc/ssl/certs /etc/ssl/certs
COPY --from=builder /tmp/modmail .

CMD ["./modmail"]

0 comments on commit 2028456

Please sign in to comment.