Files
Majola-Lidarr-Importer/Dockerfile

20 lines
473 B
Docker

FROM python:3.11-slim
# Set working directory inside the container
WORKDIR /app
# Create logs directory
RUN mkdir -p /app/logs
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy only the required script for this service
COPY lidarr_api.py .
# Ensure logs directory is accessible
VOLUME ["/app/logs"]
# The CMD to run the API service
CMD ["python3", "lidarr_api.py"]