bifrost (sha256:3eb3df26171bba6d95142d95b027303451e8e48b49d7899f01f33e89775ab9be)
Published 2026-10-31 18:37:04 +03:00 by Kladzey
Installation
docker pull forgejo.kladzey.duckdns.org/kladzey/bifrost@sha256:3eb3df26171bba6d95142d95b027303451e8e48b49d7899f01f33e89775ab9besha256:3eb3df26171bba6d95142d95b027303451e8e48b49d7899f01f33e89775ab9beImage layers
| ADD alpine-minirootfs-3.23.5-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c sed -i 's#https://dl-cdn.alpinelinux.org#https://mirror.leaseweb.com#g' /etc/apk/repositories # buildkit |
| WORKDIR /app |
| RUN /bin/sh -c sh -c 'set -e; i=0; while [ $i -lt 8 ]; do i=$((i+1)); if apk upgrade --no-cache && apk add --no-cache musl libgcc ca-certificates zlib; then exit 0; fi; echo "apk attempt $i failed"; sleep 5; done; exit 1' # buildkit |
| COPY --chown=1000:0 /app/main . # buildkit |
| COPY --chown=1000:0 /build/transports/docker-entrypoint.sh . # buildkit |
| ARG ARG_APP_PORT=8080 |
| ARG ARG_APP_HOST=0.0.0.0 |
| ARG ARG_LOG_LEVEL=info |
| ARG ARG_LOG_STYLE=json |
| ARG ARG_APP_DIR=/app/data |
| ENV APP_PORT=8080 APP_HOST=0.0.0.0 LOG_LEVEL=info LOG_STYLE=json APP_DIR=/app/data |
| RUN |5 ARG_APP_PORT=8080 ARG_APP_HOST=0.0.0.0 ARG_LOG_LEVEL=info ARG_LOG_STYLE=json ARG_APP_DIR=/app/data /bin/sh -c mkdir -p "$APP_DIR/logs" && adduser -D -s /bin/sh appuser && chown -R appuser:0 "$APP_DIR" && { [ "$APP_DIR" = "/app" ] || chmod -R g=rwX "$APP_DIR"; } && chmod +x /app/docker-entrypoint.sh # buildkit |
| USER 1000:0 |
| VOLUME [/app/data] |
| EXPOSE [8080/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL wget -q -O /dev/null http://127.0.0.1:${APP_PORT}/health || exit 1] Interval:30s Timeout:10s StartPeriod:5s StartInterval:0s Retries:3} |
| ENTRYPOINT ["/app/docker-entrypoint.sh"] |
| CMD ["/app/main"] |