[TASK] Added Dockerfile to build docker container
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal 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 []
|
||||
Reference in New Issue
Block a user