Add ability to read secrets from files
This commit is contained in:
parent
628f9eefc3
commit
b496c86f18
5 changed files with 1292 additions and 840 deletions
|
|
@ -1,6 +1,8 @@
|
|||
# This dockerfile builds the API and runs it on a minimal container with the Datastore adaptor
|
||||
|
||||
FROM rust:latest as builder
|
||||
ARG adaptor=sql-adaptor
|
||||
|
||||
|
||||
# Install CA Certs for Hyper
|
||||
RUN apt-get install -y --no-install-recommends ca-certificates
|
||||
|
|
@ -11,7 +13,7 @@ COPY . .
|
|||
# Will build and cache the binary and dependent crates in release mode
|
||||
RUN --mount=type=cache,target=/usr/local/cargo,from=rust:latest,source=/usr/local/cargo \
|
||||
--mount=type=cache,target=target \
|
||||
cargo build --release --features datastore-adaptor && mv ./target/release/crabfit-api ./api
|
||||
cargo build --release --features $adaptor && mv ./target/release/crabfit-api ./api
|
||||
|
||||
# Runtime image
|
||||
FROM debian:bullseye-slim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue