24 lines
480 B
Docker
24 lines
480 B
Docker
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 []
|