-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.debian
30 lines (21 loc) · 959 Bytes
/
Dockerfile.debian
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM scratch AS rootfs
COPY ["./rootfs", "/"]
FROM --platform=${TARGETPLATFORM} lscr.io/linuxserver/baseimage-debian:bookworm AS xinetd
RUN set -eux \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update --fix-missing \
&& apt-get install xinetd --yes --no-install-recommends \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ /var/cache/* /tmp/* /var/log/*
COPY --from=rootfs ["/", "/"]
# s6-overlay configuration
ENV S6_KEEP_ENV=1
ENV XINETD_PATH="/usr/sbin/xinetd"
LABEL maintainer="Aleksandar Puharic <aleksandar@puharic.com>" \
org.opencontainers.image.source="https://github.com/N0rthernL1ghts/xinetd-docker" \
org.opencontainers.image.description="xinetd ${XINETD_VERSION} / Debian - Build ${TARGETPLATFORM}" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.version="${XINETD_VERSION}-lsio-debian"
# s6-overlay entrypoint
ENTRYPOINT ["/init"]