-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (23 loc) · 918 Bytes
/
Dockerfile
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
26
27
28
FROM ubuntu:16.04
MAINTAINER Blaine Chatman <[email protected]>
# install deb/pip packages
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential \
software-properties-common \
python \
python-dev \
python-pip \
python-virtualenv && \
rm -rf /var/lib/apt/lists/* /tmp/* && \
apt-get clean
# copy code to /affirm
ADD . /affirm/affirm-example-python
WORKDIR /affirm/affirm-example-python
RUN pip install -U pip==19.2.3 # needs to be pinned to this version for python 2
RUN pip install -r requirements.txt # default version was not properly working
# TODO mount app.yml
RUN python setup.py install
EXPOSE 5000
CMD ["gunicorn", "--bind=0.0.0.0:5000", "--workers=16", "-k", "gevent" , "affirm_example.manage:app"]