many changes to docker setup
This commit is contained in:
parent
ec9e1fb645
commit
9254afe406
3 changed files with 13 additions and 7 deletions
13
Dockerfile
13
Dockerfile
|
@ -5,9 +5,12 @@ MAINTAINER Leon Haag-Fank "admin@haagfank.de"
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY zeit-dl requirements.txt ./
|
COPY docker-entrypoint.sh zeit-dl requirements.txt ./
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
RUN playwright install chromium && \
|
RUN playwright install chromium --with-deps
|
||||||
playwright install-deps chromium
|
|
||||||
|
|
||||||
ENTRYPOINT python ./zeit-dl "$ZEITDL_USER" "$ZEITDL_PASSWORD" -o /data
|
ENV ZEITDL_USER \
|
||||||
|
ZEITDL_PASSWORD \
|
||||||
|
ZEITDL_OPTIONS="-o /data"
|
||||||
|
|
||||||
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||||
|
|
|
@ -3,8 +3,7 @@ services:
|
||||||
image: zeitdl
|
image: zeitdl
|
||||||
container_name: zeitdl
|
container_name: zeitdl
|
||||||
build: ./
|
build: ./
|
||||||
user: "${UID}:${GID}"
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ${ZEITDL_MOUNT}:/data
|
- $ZEITDL_MOUNT:/data
|
||||||
|
|
4
docker-entrypoint.sh
Executable file
4
docker-entrypoint.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
python ./zeit-dl "$ZEITDL_USER" "$ZEITDL_PASSWORD" ${ZEITDL_OPTIONS:=-o /data}
|
||||||
|
chown -R $UID:$GID /data
|
Loading…
Add table
Reference in a new issue