Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Zloi78 authored Nov 23, 2021
1 parent 5cda88e commit e73f35e
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
FROM ubuntu:20.10
MAINTAINER Anton Kiselev
FROM frolvlad/alpine-glibc:latest

ENV TS_VERSION=MatriX.105
ENV TZ=Europe/Moscow
RUN apk add --no-cache tzdata && \
apk add --no-cache curl && mkdir -p /torrserver/db && \
version=$(curl -s "https://github.com/YouROK/TorrServer/releases/latest" | sed 's#.*tag/\(.*\)\".*#\1#') && \
echo "**** download $version ****" && \
curl -o /torrserver/TorrServer -L "https://github.com/YouROK/TorrServer/releases/download/${version}/TorrServer-linux-amd64" && \
chmod +x /torrserver/TorrServer \
&& ls /usr/share/zoneinfo \
&& cp /usr/share/zoneinfo/Asia/Omsk /etc/localtime \
&& echo "Europe/Moscow" > /etc/timezone \
&& apk del tzdata

EXPOSE 8090:8090

RUN echo $TZ > /etc/timezone && \
apt-get update && apt-get install -y tzdata wget && \
rm /etc/localtime && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata && \
mkdir /torrserver/ && cd /torrserver/ && mkdir /db && \
wget -O TorrServer -P /torrserver/ "https://github.com/YouROK/TorrServer/releases/download/$TS_VERSION/TorrServer-linux-amd64" && \
chmod +x /torrserver/TorrServer

ENTRYPOINT ["/torrserver/TorrServer"]
CMD ["--path", "/torrserver/db"]
EXPOSE 8090
ENTRYPOINT /torrserver/TorrServer --path /torrserver/db
VOLUME /torrserver/db

0 comments on commit e73f35e

Please sign in to comment.