Namo22 commited on
Commit
d781f0e
1 Parent(s): 3a62c64

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -5
Dockerfile CHANGED
@@ -4,9 +4,6 @@ FROM python:3.9
4
  # Set the working directory in the container
5
  WORKDIR /code
6
 
7
- # Installation of portaudio19-dev
8
- RUN apt-get update && apt-get install -y portaudio19-dev
9
-
10
  # Copy the requirements file into the container at /code
11
  COPY ./requirements.txt /code/requirements.txt
12
 
@@ -16,5 +13,5 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
  # Copy the current directory contents into the container at /code
17
  COPY . .
18
 
19
- # Define the command to start the Flask app
20
- CMD ["python", "main.py"]
 
4
  # Set the working directory in the container
5
  WORKDIR /code
6
 
 
 
 
7
  # Copy the requirements file into the container at /code
8
  COPY ./requirements.txt /code/requirements.txt
9
 
 
13
  # Copy the current directory contents into the container at /code
14
  COPY . .
15
 
16
+ # Define the command to start the Flask app using Gunicorn
17
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]