-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (17 loc) · 704 Bytes
/
Dockerfile
File metadata and controls
21 lines (17 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM mcr.microsoft.com/playwright/python:v1.33.0-jammy
# Set the working directory to /app
WORKDIR /app
# Copy requirements.txt to the working directory
COPY requirements.txt ./
# Install dependencies
# Copy the rest of the application code to the working directory
COPY . .
#upgrade pip
RUN pip install --upgrade pip
#RUN apt-get update && apt-get install -y default-libmysqlclient-dev gcc
#installing the dependencies
RUN pip install --no-cache-dir -r requirements.txt
#CMD instruction should be used to run the software
#contained by your image, along with any arguments.
#CMD ["python3", "-m", "server", "--host=0.0.0.0", "--port=443"]
CMD ["gunicorn", "-b", "0.0.0.0:5002", "-w", "4", "app:app"]