Add build

This commit is contained in:
2024-08-08 18:46:23 +01:00
parent d22af45d12
commit 02bc00754c
2 changed files with 31 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
ARG IMAGE=rust:bookworm
FROM $IMAGE AS build
WORKDIR /app/src
COPY . .
RUN cargo install --path . --root /app/build
FROM $IMAGE AS runner
WORKDIR /app
COPY --from=build /app/build .
ENTRYPOINT ["./bin/nostr_services_rs"]