feat: dockerize application
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-01-09 14:34:27 +01:00
parent d34b7361cb
commit 4557231256
3 changed files with 65 additions and 21 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM rust:1.92 AS builder
RUN rustup target add x86_64-unknown-linux-musl
RUN apt-get update && apt-get install -y musl-tools && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY ./Cargo.toml ./Cargo.lock ./
COPY ./src ./src
RUN cargo build --release --target x86_64-unknown-linux-musl
FROM scratch
COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/pg-instance-handler /pg-instance-handler
CMD ["/pg-instance-handler"]