mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +00:00
Merge pull request #37 from luckydonald-forks/master
Added simple docker file to run release in a container
This commit is contained in:
commit
23c6554ccb
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM openjdk:8
|
||||||
|
|
||||||
|
ENV JAR_VERSION 1.0.5-test.5
|
||||||
|
ENV JAR_DOWNLOAD_URL https://github.com/fabianonline/telegram_backup/releases/download/${JAR_VERSION}/telegram_backup.jar
|
||||||
|
|
||||||
|
RUN apt-get update -y && apt-get install -y curl && \
|
||||||
|
curl -L "https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64" -o /bin/dumb-init && \
|
||||||
|
curl -L $JAR_DOWNLOAD_URL -o telegram_backup.jar && mkdir /data/ && chmod +x /bin/dumb-init
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/dumb-init", "--"]
|
||||||
|
|
||||||
|
CMD ["java", "-jar", "telegram_backup.jar", "--target", "/data/", "--help"]
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
tg-dl:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
restart: "unless-stopped"
|
||||||
|
volumes:
|
||||||
|
- /data/telegram-downloader:/data # host server path : docker container path
|
||||||
|
command: ["java", "-jar", "telegram_backup.jar", "--target", "/data/"]
|
Loading…
Reference in New Issue
Block a user