1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:09 +02:00
dockerfiles/dante/Dockerfile

41 lines
981 B
Docker
Raw Normal View History

2015-06-17 09:35:48 +08:00
#
# Dockerfile for dante-server
#
FROM debian:jessie
2017-05-08 07:05:07 +08:00
MAINTAINER kev <noreply@easypi.pro>
2015-06-17 09:35:48 +08:00
2015-06-17 11:51:23 +08:00
2017-03-08 17:22:58 +08:00
ENV DANTE_VER 1.4.2
2015-06-17 11:51:23 +08:00
ENV DANTE_URL https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
2018-10-25 23:02:01 +08:00
ENV DANTE_SHA 4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
2015-06-17 11:51:23 +08:00
ENV DANTE_FILE dante.tar.gz
ENV DANTE_TEMP dante
ENV DANTE_DEPS build-essential curl
2016-04-24 13:17:31 +08:00
RUN set -xe \
&& apt-get update \
2015-06-17 11:51:23 +08:00
&& apt-get install -y $DANTE_DEPS \
&& mkdir $DANTE_TEMP \
2015-06-19 10:17:14 +08:00
&& cd $DANTE_TEMP \
2015-06-17 11:51:23 +08:00
&& curl -sSL $DANTE_URL -o $DANTE_FILE \
2017-03-08 17:22:58 +08:00
&& echo "$DANTE_SHA *$DANTE_FILE" | shasum -c \
2015-06-17 11:51:23 +08:00
&& 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 09:35:48 +08:00
2015-06-17 11:51:23 +08:00
ADD sockd.conf /etc/sockd.conf
ENV CFGFILE /etc/sockd.conf
ENV PIDFILE /tmp/sockd.pid
ENV WORKERS 10
2015-06-17 09:35:48 +08:00
EXPOSE 1080
2015-06-17 12:14:19 +08:00
CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS
2015-06-17 11:51:23 +08:00