diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b4bb7c0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM rust:1.79 AS builder + +WORKDIR /app + +COPY ./ ./ + +RUN cargo build --release + +FROM debian:bookworm-slim + +RUN apt-get update && \ + apt-get upgrade && \ + apt-get install -y libsqlite3-0 libpq5 ca-certificates && \ + apt-get clean all && \ + rm -rf /var/lib/apt/lists/* + +COPY --from=builder /app/target/release/covclaim /usr/local/bin/covclaim +COPY --from=builder /app/.env /.env + +EXPOSE 1234 + +CMD ["/usr/local/bin/covclaim"]