2023-12-01 21:06:14 +08:00
|
|
|
FROM alpine:3.18.5
|
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; \
|
|
|
|
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"
|