-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (13 loc) · 715 Bytes
/
Dockerfile
File metadata and controls
19 lines (13 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use an official Python runtime as the base image
FROM python:3.9-slim
# Set the working directory in the container to /app
WORKDIR /webapp
# Copy the current directory (on your machine) contents into the container at /app
COPY . /webapp
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Make port 8000 available for the app
EXPOSE 8000
# Run gunicorn on port 80 when the container launches
# CMD ["gunicorn", "-k", "geventwebsocket.gunicorn.workers.GeventWebSocketWorker", "-b", "0.0.0.0:8000", "run:app"]
CMD ["gunicorn", "-k", "geventwebsocket.gunicorn.workers.GeventWebSocketWorker", "-b", "0.0.0.0:8000", "--log-level", "debug", "run:app"]