skor2 (latest)
Published 2025-08-11 15:24:31 +02:00 by toma
Installation
docker pull git.berr.li/toma/skor2:latestsha256:1ab44f39930dde8fe60b1a21dde6c3cd53cd2c16e6ac5fc11e8dca83388efd3fImage Layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1749513600' |
| RUN /bin/sh -c useradd -r -u 10001 -g users appuser && apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /app |
| COPY /out/skor /usr/local/bin/skor # buildkit |
| COPY static/ /app/static/ # buildkit |
| COPY views/ /app/views/ # buildkit |
| COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /usr/local/bin/docker-entrypoint.sh && chown -R appuser:users /app # 👈 donne l'écriture à l'utilisateur non-root # buildkit |
| ENV GIN_MODE=release |
| EXPOSE map[8290/tcp:{}] |
| USER appuser |
| HEALTHCHECK &{["CMD-SHELL" "curl -fsS http://127.0.0.1:8290/ || exit 1"] "30s" "5s" "10s" "0s" '\x03'} |
| ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] |
| CMD ["skor"] |