Files
api/Dockerfile
Kieran c432f603ec
All checks were successful
continuous-integration/drone/push Build is passing
feat: nostr domain hosting
2025-04-03 12:56:20 +01:00

14 lines
361 B
Docker

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