File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ FROM alpine:3.21
44ARG TARGETOS
55ARG TARGETARCH
66
7- RUN apk add --no-cache ca-certificates tzdata \
7+ RUN apk add --no-cache ca-certificates tzdata su-exec \
88 && addgroup -S resin \
99 && adduser -S -G resin -h /var/lib/resin resin \
1010 && mkdir -p /var/cache/resin /var/lib/resin /var/log/resin \
@@ -13,9 +13,11 @@ RUN apk add --no-cache ca-certificates tzdata \
1313# Copy the pre-built binaries from the GitHub Actions host into the image
1414# Buildx provides TARGETOS (linux) and TARGETARCH (amd64 or arm64)
1515COPY release-bin/${TARGETOS}/${TARGETARCH}/resin-${TARGETOS}-${TARGETARCH} /usr/local/bin/resin
16+ COPY docker/entrypoint.sh /usr/local/bin/docker-entrypoint.sh
17+ RUN chmod +x /usr/local/bin/docker-entrypoint.sh
1618
17- USER resin
1819EXPOSE 2260
1920VOLUME ["/var/cache/resin", "/var/lib/resin", "/var/log/resin"]
2021
21- ENTRYPOINT ["/usr/local/bin/resin"]
22+ ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
23+ CMD ["/usr/local/bin/resin"]
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ RUN CGO_ENABLED=0 go build -trimpath -tags "with_quic with_wireguard with_grpc w
3030 -o /out/resin ./cmd/resin
3131
3232FROM alpine:3.21
33+ # NOTE: Keep this runtime stage in sync with .github/Dockerfile.release.
34+ # GHCR release images are built from .github/Dockerfile.release, not this file.
3335RUN apk add --no-cache ca-certificates tzdata su-exec \
3436 && addgroup -S resin \
3537 && adduser -S -G resin -h /var/lib/resin resin \
You can’t perform that action at this time.
0 commit comments