Skip to content

Commit

Permalink
Remove builds that require vendored openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensdavid committed Jul 19, 2024
1 parent f3240de commit d85964f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
matrix:
include:
- target: x86_64-unknown-linux-gnu
- target: x86_64-unknown-linux-musl
- target: aarch64-unknown-linux-gnu
- target: aarch64-unknown-linux-musl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

ARG RUST_VERSION=1.78

FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-alpine AS build
FROM --platform=$BUILDPLATFORM rust:${RUST_VERSION}-slim-bookworm AS build

WORKDIR /app

RUN apk add --no-cache musl-dev perl make
RUN apt-get update -y && apt-get install -y libssl-dev pkg-config

COPY . .
RUN cargo build --locked --release --target-dir target && cp ./target/release/prodzilla /bin/prodzilla

FROM alpine:3.18 AS final
FROM debian:bookworm-slim AS final

RUN apt-get update && apt-get install -y libssl-dev ca-certificates
# Create a non-privileged user that the app will run under.
# See https://docs.docker.com/go/dockerfile-user-best-practices/
ARG UID=10001
Expand All @@ -26,6 +27,7 @@ RUN adduser \
appuser
USER appuser


# Copy the executable from the "build" stage.
COPY --from=build /bin/prodzilla /bin/

Expand Down

0 comments on commit d85964f

Please sign in to comment.