Files
spotizerr-dev/Dockerfile
cool.gitter.choco f5d4d95f8a general improvements
2025-01-26 21:07:42 -06:00

23 lines
594 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
# 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"]