-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerFile
More file actions
25 lines (20 loc) · 699 Bytes
/
Copy pathDockerFile
File metadata and controls
25 lines (20 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use an official Python runtime as a parent image
FROM python:3.9-slim-buster
# Set the working directory to /app
WORKDIR /app
RUN apt-get update
RUN apt-get install -y libuv1-dev zlib1g
# Copy the requirements file into the container at /app
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# Copy the rest of the application code into the container at /app
COPY . /app
# Expose the port that the application will run on
EXPOSE 7860
EXPOSE 80
EXPOSE 443
EXPOSE 8080
EXPOSE 5000
# Use Gunicorn as the WSGI server
CMD ["python3","-m" ,"socketify" ,"app:app", "-w", "4", "-b", "0.0.0.0:5000"]