6638166e05
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
11 lines
No EOL
468 B
Docker
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"] |