2024-02-16 16:21:18 +01:00
|
|
|
# syntax=docker/dockerfile:latest
|
2025-01-07 04:59:05 +00:00
|
|
|
FROM alpine:3.21.1
|
2023-06-07 15:45:38 +02:00
|
|
|
|
|
|
|
|
COPY --chmod=775 start.sh /start.sh
|
2023-08-18 21:21:24 +02:00
|
|
|
COPY --chmod=775 healthcheck.sh /healthcheck.sh
|
2023-06-07 15:45:38 +02:00
|
|
|
|
|
|
|
|
RUN set -ex; \
|
2024-04-17 17:52:42 +02:00
|
|
|
apk upgrade --no-cache -a; \
|
2023-06-07 15:45:38 +02:00
|
|
|
apk add --no-cache \
|
|
|
|
|
ca-certificates \
|
2023-06-15 16:13:53 +02:00
|
|
|
netcat-openbsd \
|
2023-06-07 15:45:38 +02: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-18 21:21:24 +02:00
|
|
|
HEALTHCHECK CMD /healthcheck.sh
|
2023-06-26 00:56:08 +02:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|