Skip to content

Commit

Permalink
Merge pull request #21 from WISVCH/docker
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
JoepdeJong authored May 5, 2024
2 parents 85d2b29 + 58762e7 commit e46b3cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM rust:bookworm AS builder

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

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y libssl-dev
RUN apt-get update && apt-get install -y libssl3 && rm -rf /var/lib/apt/lists/*

COPY --from=builder /usr/local/cargo/bin/passes /usr/local/bin/passes
COPY --from=builder /src/target/release/passes /usr/local/bin/passes
COPY ./Event.pass /usr/local/bin/Event.pass

CMD ["passes"]
ENTRYPOINT ["/usr/local/bin/passes"]

0 comments on commit e46b3cc

Please sign in to comment.