Files
hideck/Dockerfile.release
T
yibaiba 941f1a6dd0 chore(release): 2.1.7 keep 503 refresh and unpack Docker binaries
Ship the 2degrees 503 keep-binding fix. Stop putting UPX-packed
hideck into the Alpine image; 2.1.6 restarted with Not a valid
dynamic program until the binary was unpacked.
2026-09-03 14:46:17 +08:00

29 lines
1.2 KiB
Docker

# 发版镜像:不再编译、不再 apk。把 dist/ 里已经打好的二进制放进运行时底包。
# 需要先有 hideck_<VERSION>_linux_amd64 和 linux_arm64,例如 hideck_v2.1.2_linux_amd64。
FROM yibaiba/hideck-runtime:3.24
ARG VERSION=unknown
ARG BUILDTIME=unknown
ARG REVISION=unknown
ARG TARGETARCH
WORKDIR /app
LABEL org.opencontainers.image.title="HiDeck" \
org.opencontainers.image.description="Qualcomm modem management platform" \
org.opencontainers.image.source="https://github.com/yibaiba/hideck" \
org.opencontainers.image.version=${VERSION} \
org.opencontainers.image.created=${BUILDTIME} \
org.opencontainers.image.revision=${REVISION}
COPY dist/hideck_${VERSION}_linux_${TARGETARCH} /usr/local/bin/hideck
RUN chmod 0755 /usr/local/bin/hideck \
&& if grep -aq UPX! /usr/local/bin/hideck; then \
echo "error: hideck is UPX-packed; Alpine rejects it (Not a valid dynamic program)" >&2; \
exit 1; \
fi
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD wget -q -T 3 -O /dev/null http://127.0.0.1:7575/ping || exit 1
STOPSIGNAL SIGTERM
ENTRYPOINT ["/usr/local/bin/hideck"]
CMD ["-c", "/app/config/config.yaml"]