-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 616 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 616 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.11-slim
# Set the working directory in the container
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
libffi-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
EXPOSE 10000
# Run the application with Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:10000", "app:app"]
# CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:10000", "app:app"]