File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2525 matrix :
2626 include :
2727 - target : x86_64-unknown-linux-gnu
28- - target : x86_64-unknown-linux-musl
2928 - target : aarch64-unknown-linux-gnu
30- - target : aarch64-unknown-linux-musl
3129 runs-on : ubuntu-latest
3230 steps :
3331 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 22
33ARG RUST_VERSION=1.78
44
5- FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-alpine AS build
5+ FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-slim-bookworm AS build
66
77WORKDIR /app
88
9- RUN apk add --no-cache musl -dev perl make
9+ RUN apt-get update -y && apt-get install -y libssl -dev pkg-config
1010
1111COPY . .
1212RUN cargo build --locked --release --target-dir target && cp ./target/release/prodzilla /bin/prodzilla
1313
14- FROM alpine:3.18 AS final
14+ FROM debian:bookworm-slim AS final
1515
16+ RUN apt-get update && apt-get install -y libssl-dev ca-certificates
1617# Create a non-privileged user that the app will run under.
1718# See https://docs.docker.com/go/dockerfile-user-best-practices/
1819ARG UID=10001
@@ -26,6 +27,7 @@ RUN adduser \
2627 appuser
2728USER appuser
2829
30+
2931# Copy the executable from the "build" stage.
3032COPY --from=build /bin/prodzilla /bin/
3133
You can’t perform that action at this time.
0 commit comments