1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00:00
dockerfiles/rinetd/Dockerfile
2018-02-06 18:08:53 +08:00

25 lines
606 B
Docker

#
# Dockerfile for rinetd
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
ENV RINETD_VERSION 0.70
ENV RINETD_URL https://github.com/samhocevar/rinetd/releases/download/v${RINETD_VERSION}/rinetd-${RINETD_VERSION}.tar.gz
RUN set -xe \
&& apk add --no-cache build-base curl tar \
&& mkdir rinetd \
&& cd rinetd \
&& curl -sSL $RINETD_URL | tar xz --strip 1 \
&& ./configure --prefix=/usr --sysconfdir=/etc/rinetd \
&& make install \
&& cd .. \
&& rm -r rinetd \
&& apk del build-base curl tar
VOLUME /etc/rinetd
CMD ["rinetd", "-f", "-c", "/etc/rinetd/rinetd.conf"]