-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (27 loc) · 831 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
33
34
35
36
37
FROM python:3.6
LABEL github="https://github.com/WilliamOtieno/dj-easy-pdf"
ENV PYTHONUNBUFFERED 1
ENV LANG=en_US.UTF-8
ENV PIP_NO_CACHE_DIR off
ENV PIP_DISABLE_PIP_VERSION_CHECK on
RUN mkdir -p /app /app/docs
WORKDIR /app
RUN set -eux \
&& DEPS=' \
bash \
gettext \
' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $DEPS \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/
COPY requirements-dev.txt /app/
COPY docs/requirements.txt /app/docs/
RUN set -eux \
&& pip3 install --no-cache-dir -U pip setuptools wheel
RUN set -eux \
&& pip3 install --no-cache-dir --timeout 1000 -r requirements.txt -r requirements-dev.txt \
&& pip3 install --no-cache-dir --timeout 1000 -r docs/requirements.txt
COPY . /app/
EXPOSE 8000
CMD ["python", "demo.py"]