feat(container): initial dockerfile and settings

!1
This commit is contained in:
2023-11-12 18:05:08 +09:30
parent 0bf56368e0
commit a6db664527
4 changed files with 117 additions and 0 deletions

31
dockerfile Normal file
View File

@ -0,0 +1,31 @@
ARG TARGETPLATFORM="linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64,linux/arm/v7"
ARG VERSION_BIND="9.18.19-r0"
FROM --platform=$TARGETPLATFORM alpine:3.18.4
ARG VERSION_BIND
RUN \
apk upgrade --no-cache; \
apk add --no-cache \
bind==${VERSION_BIND} \
supervisor;
EXPOSE \
53/tcp \
53/udp
# Others required? dnssec, secure updates, sone transfers DOT etc
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD \
supervisorctl status || exit 1
COPY includes/ /
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]