2015-06-17 03:35:48 +02:00
|
|
|
#
|
2020-10-30 06:48:52 +02:00
|
|
|
# Dockerfile for dante
|
2015-06-17 03:35:48 +02:00
|
|
|
#
|
|
|
|
|
2023-10-08 09:25:41 +02:00
|
|
|
FROM debian:bookworm
|
2020-10-30 06:48:52 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
2015-06-17 03:35:48 +02:00
|
|
|
|
2023-10-08 09:25:41 +02:00
|
|
|
ARG DANTE_VER=1.4.3
|
|
|
|
ARG DANTE_URL=https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
|
|
|
|
ARG DANTE_SHA1=1e264ec532774324b5508ba5f2ad226d479b4977
|
|
|
|
ARG DANTE_FILE=dante.tar.gz
|
|
|
|
ARG DANTE_TEMP=dante
|
|
|
|
ARG DANTE_DEPS="build-essential curl"
|
2015-06-17 05:51:23 +02:00
|
|
|
|
2024-03-05 10:09:52 +02:00
|
|
|
ARG GUESS_URL="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
|
|
|
|
ARG GUESS_FILE=config.guess
|
|
|
|
|
2016-04-24 07:17:31 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& 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 \
|
2021-11-17 05:27:35 +02:00
|
|
|
&& echo "$DANTE_SHA1 *$DANTE_FILE" | sha1sum -c \
|
2015-06-17 05:51:23 +02:00
|
|
|
&& tar xzf $DANTE_FILE --strip 1 \
|
2024-03-05 10:09:52 +02:00
|
|
|
&& curl -sSL "$GUESS_URL" -o $GUESS_FILE \
|
2015-06-17 05:51:23 +02:00
|
|
|
&& ./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
|
|
|
|
2020-10-30 06:48:52 +02:00
|
|
|
COPY data/sockd.conf /etc/dante/sockd.conf
|
2015-06-17 05:51:23 +02:00
|
|
|
|
2020-10-30 06:48:52 +02:00
|
|
|
ENV CFGFILE=/etc/dante/sockd.conf
|
|
|
|
ENV PIDFILE=/run/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
|