2022-05-07 03:11:26 +03:00
|
|
|
FROM epicmorg/debian:bullseye
|
2021-11-12 01:56:24 +03:00
|
|
|
|
|
|
|
#ARG TORRSERVER_LINK=https://releases.yourok.ru/torr/server/TorrServer-linux-amd64
|
|
|
|
ARG TORRSERVER_LINK=https://github.com/YouROK/TorrServer/releases/latest/download/TorrServer-linux-amd64
|
|
|
|
|
|
|
|
WORKDIR /opt
|
|
|
|
|
|
|
|
ADD $TORRSERVER_LINK torrServer
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
|
|
|
export GODEBUG=madvdontneed=1 && \
|
|
|
|
chmod +x torrServer
|
|
|
|
|
|
|
|
ENV UI_PORT 8090
|
|
|
|
ENV UPNP_PORT 32000
|
|
|
|
|
|
|
|
EXPOSE \
|
|
|
|
$UI_PORT \
|
|
|
|
$UPNP_PORT \
|
|
|
|
$UPNP_PORT/udp
|
2021-11-12 02:12:14 +03:00
|
|
|
|
2021-11-12 01:56:24 +03:00
|
|
|
VOLUME \
|
|
|
|
/config
|
|
|
|
|
2022-03-21 18:36:40 +03:00
|
|
|
#healthcheck. good practice
|
|
|
|
HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:${UI_PORT}/ || exit 1
|
|
|
|
|
2021-11-12 01:56:24 +03:00
|
|
|
ENTRYPOINT /opt/torrServer --port $UI_PORT -path /config
|