forked from nordprojects/sirius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (32 loc) · 881 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
38
39
40
41
FROM python:3.7.4-slim-buster
WORKDIR /sirius
RUN apt-get update -y && \
mkdir -p /usr/share/man/man1 && \
mkdir -p /usr/share/man/man7 && \
apt-get install -y --no-install-recommends \
python3 \
python3-dev \
python3-pip \
libfreetype6-dev \
libgstreamer1.0-dev \
libjpeg-dev \
libpq-dev \
zlib1g-dev \
bzip2 \
fontconfig \
gcc \
phantomjs \
wget \
postgresql-11 \
git
RUN apt-get autoremove -y
RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
RUN tar jxf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
rm phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
RUN pip install --upgrade pip
ADD ./requirements.txt /sirius/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install honcho
EXPOSE 5000
ADD . .