1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-04 10:34:49 +02:00
dockerfiles/dante/Dockerfile

40 lines
934 B
Docker
Raw Normal View History

2015-06-17 03:35:48 +02:00
#
# Dockerfile for dante-server
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
2015-06-17 05:51:23 +02:00
ENV DANTE_VER 1.4.1
ENV DANTE_URL https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
ENV DANTE_MD5 68c2ce12119e12cea11a90c7a80efa8f
ENV DANTE_FILE dante.tar.gz
ENV DANTE_TEMP dante
ENV DANTE_DEPS build-essential curl
2015-06-17 03:35:48 +02:00
RUN apt-get update \
2015-06-17 05:51:23 +02:00
&& apt-get install -y $DANTE_DEPS \
&& mkdir $DANTE_TEMP \
2015-06-19 04:17:14 +02:00
&& cd $DANTE_TEMP \
2015-06-17 05:51:23 +02:00
&& curl -sSL $DANTE_URL -o $DANTE_FILE \
&& echo "$DANTE_MD5 $DANTE_FILE" | md5sum -c \
&& tar xzf $DANTE_FILE --strip 1 \
&& ./configure \
&& make install \
&& cd .. \
&& rm -rf $DANTE_TEMP \
&& apt-get purge -y --auto-remove $DANTE_DEPS \
&& rm -rf /var/lib/apt/lists/*
2015-06-17 03:35:48 +02:00
2015-06-17 05:51:23 +02:00
ADD sockd.conf /etc/sockd.conf
ENV CFGFILE /etc/sockd.conf
ENV PIDFILE /tmp/sockd.pid
ENV WORKERS 10
2015-06-17 03:35:48 +02:00
EXPOSE 1080
2015-06-17 06:14:19 +02:00
CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS
2015-06-17 05:51:23 +02:00