Skip to content

Commit

Permalink
chore: add tini to handle signals in container
Browse files Browse the repository at this point in the history
  • Loading branch information
helder-moreira committed Oct 17, 2024
1 parent e2461f0 commit 45a9c45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
RUN cargo build --release --features "$(grep 'feature =' src/keyring/providers.rs | tr -d '[:blank:]' | sort | uniq | cut -d '"' -f 2 | xargs)"

FROM alpine
RUN apk add --no-cache tini
COPY --from=builder /app/target/release/tmkms /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/tmkms"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/tmkms"]

0 comments on commit 45a9c45

Please sign in to comment.