| ADD alpine-minirootfs-3.24.1-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| /bin/sh -c apk add --no-cache ca-certificates curl && apk upgrade --no-cache |
| /bin/sh -c addgroup -g 10007 shares && adduser -S -u 10007 -G shares -H -s /sbin/nologin shares |
| WORKDIR /app |
| COPY file:8f4a765d9639a7f0bf491eb4d5b746066a0b7429eb2cf6c3c5525fab11e5fe29 in /usr/local/bin/shares |
| COPY dir:e6289d568638615f6302a39fe265e6f8a3be8cb7ff0eb1ee9c3a0222042f17cb in /app/static |
| ENV SHARES_BIND_HOST=0.0.0.0 SHARES_BIND_PORT=8080 SHARES_STATIC_DIR=/app/static RUST_LOG=info,shares=debug |
| EXPOSE 8080 |
| USER shares:shares |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD curl -sf http://127.0.0.1:8080/healthz | grep -q ok || exit 1 |
| ENTRYPOINT ["/usr/local/bin/shares"] |