| ADD alpine-minirootfs-3.20.10-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache ca-certificates && adduser -D -u 10001 appuser # buildkit |
| WORKDIR /app |
| COPY /build/anis-accounts /app/anis-accounts # buildkit |
| COPY templates /app/templates # buildkit |
| RUN /bin/sh -c mkdir -p /data && chown appuser:appuser /data # buildkit |
| USER appuser |
| ENV DB_PATH=/data/anis-accounts.db |
| ENV LISTEN_ADDR=:8091 |
| EXPOSE [8091/tcp] |
| VOLUME [/data] |
| HEALTHCHECK &{["CMD-SHELL" "wget -q -O- http://localhost:8091/healthz || exit 1"] "30s" "5s" "10s" "0s" '\x03'} |
| ENTRYPOINT ["/app/anis-accounts"] |