-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (26 loc) · 901 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ubuntu:xenial
MAINTAINER schors <[email protected]>
ENV DANTE_VER 1.4.2
ENV DANTE_URL https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
ENV DANTE_SHA baa25750633a7f9f37467ee43afdf7a95c80274394eddd7dcd4e1542aa75caad
ENV DANTE_FILE dante.tar.gz
ENV DANTE_TEMP dante
ENV DANTE_DEPS build-essential curl
RUN set -xe \
&& apt-get update \
&& apt-get install -y $DANTE_DEPS \
&& mkdir $DANTE_TEMP \
&& cd $DANTE_TEMP \
&& curl -sSL $DANTE_URL -o $DANTE_FILE \
&& echo "$DANTE_SHA *$DANTE_FILE" | shasum -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/*
COPY etc/ /etc
ENV CFGFILE /etc/sockd.conf
ENV PIDFILE /tmp/sockd.pid
CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS