Music_ChatBox_Flask / Dockerfile
Namo22's picture
Update Dockerfile
bccd6a2 verified
raw history blame
No virus
609 Bytes
# Use the official Python image from Docker Hub
FROM python:3.9
# Set the working directory in the container
WORKDIR /code
# Installation of portaudio19-dev
RUN apt-get update && apt-get install -y portaudio19-dev
# Copy the requirements file into the container at /code
COPY ./requirements.txt /code/requirements.txt
# Install the Python dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the current directory contents into the container at /code
COPY . .
# Define the command to start the Flask app using Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]