Added Dockerfile
This commit is contained in:
parent
3e25d66474
commit
f69352cd1b
5 changed files with 33 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.env
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM python:3
|
||||||
|
|
||||||
|
MAINTAINER Leon Haag-Fank "admin@haagfank.de"
|
||||||
|
|
||||||
|
VOLUME /data
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY zeit-dl requirements.txt ./
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
RUN playwright install chromium && \
|
||||||
|
playwright install-deps chromium
|
||||||
|
|
||||||
|
ENTRYPOINT python ./zeit-dl "$ZEITDL_USER" "$ZEITDL_PASSWORD" -o /data
|
|
@ -13,6 +13,15 @@ playwright install chromium
|
||||||
```
|
```
|
||||||
Then you just need to download the [`zeit-dl`](https://git.haagfank.de/LnLcFlx/zeit-dl/raw/branch/master/zeit-dl) file from this repository.
|
Then you just need to download the [`zeit-dl`](https://git.haagfank.de/LnLcFlx/zeit-dl/raw/branch/master/zeit-dl) file from this repository.
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
Put your credentials and the desired output path in the `.env` file
|
||||||
|
```
|
||||||
|
ZEITDL_USER=youruser
|
||||||
|
ZEITDL_PASSWORD=yourpassword
|
||||||
|
ZEITDL_MOUNT=/your/path
|
||||||
|
```
|
||||||
|
and run `docker compose up -d`.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
If you simply want to download the current issue of Die ZEIT as pdf run
|
If you simply want to download the current issue of Die ZEIT as pdf run
|
||||||
```sh
|
```sh
|
||||||
|
|
9
docker-compose.yaml
Normal file
9
docker-compose.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
services:
|
||||||
|
zeitdl:
|
||||||
|
image: zeitdl
|
||||||
|
container_name: zeitdl
|
||||||
|
build: ./
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
volumes:
|
||||||
|
- ${ZEITDL_MOUNT}:/data
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
playwright
|
Loading…
Add table
Reference in a new issue