-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (24 loc) · 1.1 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
FROM python:3
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN echo 'deb http://deb.debian.org/debian stretch main' >> /etc/apt/sources.list && \
apt-get update && \
apt-get autoremove -y && \
apt-get install -y libssl1.0-dev curl git nano wget && \
rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/partial/*
ADD https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz /
RUN set -ex; wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
RUN set -ex; tar xvf /wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
RUN set -ex; mv wkhtmltox/bin/wkhtmlto* /usr/bin/
RUN set -ex; ln -nfs /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
WORKDIR /code
COPY requirements.txt /code/
COPY manage.py /code/
COPY dataset_api /code/dataset_api/
COPY DatasetServer /code/DatasetServer/
# COPY templates /code/templates/
COPY activity_log /code/activity_log/
RUN pip install -r requirements.txt
#RUN python manage.py migrate
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8001"]