1
0
Fork 0
immich-folder-album-creator/Dockerfile
Salvoxia 6638166e05 Added Docker awareness
Added more clear user hints for how to run the container for creating/deleting albums depending on whether the script is running bare python or in Docker
2024-08-09 18:14:40 +02:00

11 lines
No EOL
468 B
Docker

FROM python:3.12-alpine
LABEL maintainer="Salvoxia <salvoxia@blindfish.info>"
COPY immich_auto_album.py requirements.txt docker/immich_auto_album.sh docker/setup_cron.sh /script/
RUN pip install --no-cache-dir -r /script/requirements.txt \
&& chmod +x /script/setup_cron.sh /script/immich_auto_album.sh \
&& rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
ENV IS_DOCKER=1
WORKDIR /script
CMD ["sh", "-c", "/script/setup_cron.sh && crond -f"]