Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Sep 29, 2023
1 parent 34e090f commit 66b3966
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
FROM rust:latest AS builder

# Install ca-certificates package
RUN apt-get update && apt-get install -y ca-certificates openssl

WORKDIR /usr/src/passes
COPY . .
RUN cargo install --path .

FROM debian:bullseye-slim


# Copy ca-certificates from builder image
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
RUN apt-get update && apt-get install -y libssl-dev

COPY --from=builder /usr/local/cargo/bin/passes /usr/local/bin/passes
CMD ["passes"]

0 comments on commit 66b3966

Please sign in to comment.