Files
spotizerr/Dockerfile
2025-03-17 21:38:10 -06:00

27 lines
622 B
Docker
Executable File

# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create necessary directories
RUN mkdir -p downloads config creds
# Default command (overridden in docker-compose.yml)
CMD ["python", "app.py"]