-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
23 lines (18 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Official Python runtime as a parent image
from python:3-slim
# Copy the requiremts txt and the gunicorn config file
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt && pip install gunicorn gevent aiohttp
COPY gunicorn.cfg /gunicorn.cfg
# Copy the current directory contents into the container at /api/aws-api
COPY . /api/aws-api
# Set the working directory to /api/aws-api
WORKDIR /api/aws-api
ADD setup.py .
ADD LICENSE .
ADD README.md .
ADD requirements.txt .
# Make port 5000 available to the world outside this container
EXPOSE 5000
# Run the gunicorn config for the production
CMD ["gunicorn", "--config", "/gunicorn.cfg", "-b", "0.0.0.0:5000", "api:app"]