Add .gitignore to ignore logs directory
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user