Files
api/Dockerfile
kieran 834ed44408 refactor: remove Provisioner trait
refactor: abstract VmHostClient from ProxmoxClient
tests: add integration test for LnVpsProvisioner
2025-03-03 11:07:09 +00:00

12 lines
273 B
Docker

ARG IMAGE=rust:bookworm
FROM $IMAGE AS build
WORKDIR /app/src
COPY . .
RUN apt update && apt -y install protobuf-compiler
RUN cargo test && cargo install --path . --root /app/build
FROM $IMAGE AS runner
WORKDIR /app
COPY --from=build /app/build .
ENTRYPOINT ["./bin/api"]