-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (27 loc) · 877 Bytes
/
Dockerfile
File metadata and controls
32 lines (27 loc) · 877 Bytes
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 quay.io/deis/base:0.3.0
RUN adduser --system \
--shell /bin/bash \
--disabled-password \
--home /app \
--group \
deis
COPY requirements.txt /app/requirements.txt
RUN buildDeps='gcc git libffi-dev libpq-dev python3-dev'; \
apt-get update && \
apt-get install -y --no-install-recommends \
$buildDeps \
libpq5 \
python3 \
sudo && \
ln -s /usr/bin/python3 /usr/bin/python && \
curl -sSL https://bootstrap.pypa.io/get-pip.py | python - pip==8.1.2 && \
mkdir -p /configs && chown -R deis:deis /configs && \
pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt && \
apt-get purge -y --auto-remove $buildDeps && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc
COPY . /app
# define execution environment
WORKDIR /app
CMD ["/app/bin/boot"]
EXPOSE 8000