forked from langeland/sirius
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDockerfile
38 lines (31 loc) · 858 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
FROM python:3.7.10-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 setuptools wheel
ADD ./pyproject.toml /sirius/pyproject.toml
RUN pip install --no-cache-dir .[test]
EXPOSE 5000
ADD . .