2024-02-16 23:21:18 +08:00
|
|
|
# syntax=docker/dockerfile:latest
|
2024-01-29 20:22:01 +08:00
|
|
|
FROM alpine:3.19.1
|
2023-06-07 21:45:38 +08:00
|
|
|
|
|
|
|
COPY --chmod=775 start.sh /start.sh
|
2023-08-19 03:21:24 +08:00
|
|
|
COPY --chmod=775 healthcheck.sh /healthcheck.sh
|
2023-06-07 21:45:38 +08:00
|
|
|
|
|
|
|
RUN set -ex; \
|
2024-04-17 23:52:42 +08:00
|
|
|
apk upgrade --no-cache -a; \
|
2023-06-07 21:45:38 +08:00
|
|
|
apk add --no-cache \
|
|
|
|
ca-certificates \
|
2023-06-15 22:13:53 +08:00
|
|
|
netcat-openbsd \
|
2023-06-07 21:45:38 +08:00
|
|
|
tzdata \
|
|
|
|
bash \
|
|
|
|
openssl; \
|
|
|
|
# Give root a random password
|
|
|
|
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
|
|
|
apk del --no-cache \
|
|
|
|
openssl;
|
|
|
|
|
|
|
|
USER 33
|
|
|
|
ENTRYPOINT ["/start.sh"]
|
|
|
|
|
2023-08-19 03:21:24 +08:00
|
|
|
HEALTHCHECK CMD /healthcheck.sh
|
2023-06-26 06:56:08 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|