Add .gitignore to ignore logs directory

This commit is contained in:
2025-09-21 12:06:42 +00:00
commit 02311a7cad
7 changed files with 171 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
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"]