Skip to content

Commit

Permalink
feat: add ca certs to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
BenJeau committed Mar 24, 2024
1 parent 2a6b7dc commit 8e8cf79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rust:1.77.0-alpine3.19 AS builder
RUN apk update && apk upgrade --no-cache
RUN apk add --no-cache musl-dev upx
RUN apk add --no-cache musl-dev upx ca-certificates
WORKDIR /app
COPY ./src ./src
COPY ./Cargo.toml .
Expand All @@ -10,6 +10,7 @@ RUN cargo build --release
RUN upx --best --lzma /app/target/release/currently_playing_spotify

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/target/release/currently_playing_spotify /

CMD ["./currently_playing_spotify"]

0 comments on commit 8e8cf79

Please sign in to comment.