diff --git a/Dockerfile b/Dockerfile index 72e8d41..597356b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/passes"]