shut down on ctrl+c
All checks were successful
Build Multiarch Container Image / call-reusable-workflow (push) Successful in 36m34s

This commit is contained in:
Sebastian Hugentobler 2024-07-10 20:56:48 +02:00
parent f568c9695b
commit 402b8e3a57
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
5 changed files with 28 additions and 9 deletions

View file

@ -1,6 +1,6 @@
FROM docker.io/rust:1-alpine3.20 AS builder
RUN mkdir /tmp/tmp
RUN mkdir /db
RUN echo "hesinde:x:2222:2222:Linux User,,,:/:/app" > /passwd
RUN apk --no-cache add \
@ -20,10 +20,10 @@ FROM scratch
COPY --from=builder /passwd /etc/passwd
COPY --from=builder /app /app
COPY --from=builder --chown=2222: /tmp/tmp /tmp
COPY --from=builder --chown=2222: /db /db
USER hesinde
CMD ["/app", "--address", "[::]:3000"]
ENTRYPOINT ["/app", "--address", "[::]:3000"]
EXPOSE 3000
VOLUME ["/db"]