Skip to content

Commit

Permalink
added dockerfile for key gen
Browse files Browse the repository at this point in the history
  • Loading branch information
joernheinemann committed Jul 3, 2023
1 parent 2bf172b commit fb9ec0d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deploy/docker/key_gen/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:experimental
FROM rust:1.70 as builder

WORKDIR /app
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,sharing=private,target=/app/target \
cargo build --release && \
# Copy executable out of the cache so it is available in the final image.
cp target/release/sentc_api_key_gen ./sentc_api_key_gen

FROM debian:bullseye-slim

COPY --from=builder /app/sentc_api_key_gen /

CMD ["/sentc_api_key_gen"]

0 comments on commit fb9ec0d

Please sign in to comment.