[TASK] Added Dockerfile to build docker container

This commit is contained in:
2025-05-29 21:21:56 +02:00
parent 86ad92e1aa
commit 7be7d32d58
3 changed files with 62 additions and 1 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM python:3.11-slim
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Create the export directory
RUN mkdir -p /app/export
# Set environment variables
ENV TARGET_DIR=/app/export
# IMMICH_HOST and IMMICH_API_KEY should be provided at runtime
# Set the entrypoint
ENTRYPOINT ["python", "immich-export.py"]
# Default command (can be overridden)
CMD []