-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
49 lines (43 loc) · 1.14 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM python:slim
MAINTAINER wrwrwr <[email protected]>
# Install runit, and up-to-date Flask and SciPy from PyPI.
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --yes \
g++ \
gcc \
gfortran \
libatlas3-base \
libatlas-dev \
liblapack3 \
liblapack-dev \
runit \
&& pip install --upgrade pip \
&& pip install \
flask \
gevent \
gunicorn \
scipy \
&& apt-get purge --yes --auto-remove \
g++ \
gcc \
gfortran \
libatlas-dev \
liblapack-dev \
&& rm -rf \
/root/.cache/* \
/var/lib/apt/lists/*
# An example Gunicorn configuration (to be used through --config).
COPY gunicorn-config.py /etc/gunicorn/config.py
# The provided Gunicorn configuration specifies this port.
EXPOSE 80
# Add application start scripts as /etc/service/<app>/run:
#
# COPY run.sh /etc/service/app/run
#
# The "run" script could contain something like:
#
# #!/usr/bin/env bash
#
# cd /app
# gunicorn --config /etc/gunicorn/config.py app:app
COPY runit.sh /runit.sh
ENTRYPOINT ["/runit.sh"]