forked from CodeForPhilly/prevention-point
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (28 loc) · 759 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
29
30
31
32
FROM python:3.7-slim
ARG APP_USER=appuser
COPY . /app
WORKDIR /app
RUN set -ex \
&& groupadd -r ${APP_USER} && useradd --no-log-init -r -g ${APP_USER} ${APP_USER} \
&& buildDeps=' \
gcc \
libbz2-dev \
libc6-dev \
libgdbm-dev \
liblzma-dev \
libncurses-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libpcre3-dev \
make \
tcl-dev \
tk-dev \
wget \
xz-utils \
zlib1g-dev \
' \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& pip install pipenv && pip install uwsgi && pipenv install --system \
&& apt-get purge -y --auto-remove $buildDeps
CMD ["uwsgi", "uwsgi.ini"]