rejson 0.2.0

A command line utility for managing secrets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Stage 1: Build the binary
FROM rustlang/rust:nightly-alpine as build
RUN apk --update --no-cache add ca-certificates=20230506-r0 musl-dev=1.2.3-r5
WORKDIR /app
COPY Cargo.toml README.md ./
COPY src/ ./src/
RUN cargo build --release

# Final stage: Make the binary available
FROM scratch
WORKDIR /app
COPY --from=build /app/target/release/rejson .
VOLUME [ "/files" ]
VOLUME [ "/keys" ]
ENV EJSON_KEYDIR=/keys
ENTRYPOINT [ "/app/rejson" ]