Skip to content

Commit 2028456

Browse files
committed
Update Dockerfile to include SSL certificates
1 parent fcea9e5 commit 2028456

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ COPY . .
1919
RUN --mount=type=cache,target=/src/builder/target/ cargo build --target=$(cat /tmp/arch)-unknown-linux-musl --release && \
2020
cp target/$(cat /tmp/arch)-unknown-linux-musl/release/modmail /tmp/modmail
2121

22+
FROM alpine:latest AS get-ssl
23+
2224
FROM scratch
2325

2426
WORKDIR /src/app
2527

26-
COPY --from=builder /tmp/hello .
28+
COPY --from=get-ssl /etc/ssl/certs /etc/ssl/certs
29+
COPY --from=builder /tmp/modmail .
2730

2831
CMD ["./modmail"]

0 commit comments

Comments
 (0)