rustdesk-server/docker/Dockerfile

27 lines
720 B
Docker
Raw Normal View History

2022-06-20 22:59:24 +08:00
FROM busybox:stable
2022-06-20 20:48:57 +08:00
2022-06-30 03:33:38 +08:00
ARG S6_OVERLAY_VERSION=3.1.1.2
2022-06-30 03:32:43 +08:00
ARG S6_ARCH=x86_64
2022-06-20 20:48:57 +08:00
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
2022-06-30 03:32:43 +08:00
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.xz /tmp
2022-06-20 20:48:57 +08:00
RUN \
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && \
2022-06-30 03:32:43 +08:00
tar -C / -Jxpf /tmp/s6-overlay-${S6_ARCH}.tar.xz && \
2022-07-14 00:28:10 +08:00
rm /tmp/s6-overlay*.tar.xz && \
ln -s /run /var/run
2022-06-30 03:32:43 +08:00
2022-06-20 20:48:57 +08:00
COPY rootfs /
ENV RELAY relay.example.com
ENV ENCRYPTED_ONLY 0
2022-06-20 20:48:57 +08:00
EXPOSE 21115 21116 21116/udp 21117 21118 21119
2022-06-20 21:22:42 +08:00
HEALTHCHECK --interval=10s --timeout=5s CMD /usr/bin/healthcheck.sh
2022-06-20 20:48:57 +08:00
WORKDIR /data
VOLUME /data
ENTRYPOINT ["/init"]