1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/rinetd/Dockerfile

25 lines
610 B
Docker
Raw Normal View History

2018-02-06 12:08:53 +02:00
#
# Dockerfile for rinetd
#
2023-03-17 05:47:02 +02:00
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2018-02-06 12:08:53 +02:00
2023-03-17 05:47:02 +02:00
ARG RINETD_VERSION=0.73
ARG RINETD_URL=https://github.com/samhocevar/rinetd/releases/download/v${RINETD_VERSION}/rinetd-${RINETD_VERSION}.tar.gz
2018-02-06 12:08:53 +02:00
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"]