mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-14 11:23:02 +02:00
40 lines
934 B
Docker
40 lines
934 B
Docker
#
|
|
# Dockerfile for dante-server
|
|
#
|
|
|
|
FROM debian:jessie
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
|
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
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y $DANTE_DEPS \
|
|
&& mkdir $DANTE_TEMP \
|
|
&& cd $DANTE_TEMP \
|
|
&& 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/*
|
|
|
|
ADD sockd.conf /etc/sockd.conf
|
|
|
|
ENV CFGFILE /etc/sockd.conf
|
|
ENV PIDFILE /tmp/sockd.pid
|
|
ENV WORKERS 10
|
|
|
|
EXPOSE 1080
|
|
|
|
CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS
|
|
|