Files
spotizerr/Dockerfile
2025-01-27 19:08:09 +01:00

23 lines
601 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.12-slim
# Set the working directory in the container
WORKDIR /app
# Install git
RUN apt-get update && apt-get install -y git ffmpeg
# Copy the requirements file into the container
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the current directory contents into the container at /app
COPY . .
# Make port 5000 available to the world outside this container
EXPOSE 7171
# Run app.py when the container launches
CMD ["python", "app.py"]