2017-01-09 15:30:51 +00:00
|
|
|
FROM openjdk:8
|
|
|
|
|
2018-03-08 21:21:11 +00:00
|
|
|
ENV JAR_VERSION 1.1.3
|
2017-01-09 15:30:51 +00:00
|
|
|
ENV JAR_DOWNLOAD_URL https://github.com/fabianonline/telegram_backup/releases/download/${JAR_VERSION}/telegram_backup.jar
|
|
|
|
|
2018-03-07 17:04:25 +00:00
|
|
|
RUN apt-get update -y && \
|
|
|
|
apt-get install --no-install-recommends -y curl && \
|
2017-01-09 15:30:51 +00:00
|
|
|
curl -L "https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64" -o /bin/dumb-init && \
|
2018-03-07 17:04:25 +00:00
|
|
|
curl -L $JAR_DOWNLOAD_URL -o telegram_backup.jar && mkdir /data/ && \
|
|
|
|
chmod +x /bin/dumb-init && \
|
|
|
|
apt-get remove -y curl && \
|
|
|
|
apt-get autoremove -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2017-01-09 15:30:51 +00:00
|
|
|
|
2017-02-17 05:32:52 +00:00
|
|
|
ENTRYPOINT ["/bin/dumb-init", "--", "java", "-jar", "telegram_backup.jar", "--target", "/data/"]
|