-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 656 Bytes
/
Dockerfile
File metadata and controls
19 lines (14 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use the latest official Python image as a base image
FROM python:latest
# Set the working directory in the container to /app
WORKDIR /app
# Copy the requirements.txt file to the working directory
COPY requirements.txt ./
# Install pip and the Python dependencies listed in requirements.txt
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Copy the rest of the application code to the working directory
COPY . .
# Specify the command to run the application
# timeout increased to 120s to accommodate slow image fetching from external APIs
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "--timeout", "120", "wrapped-fm:app"]