-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
38 lines (31 loc) · 920 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.6.4-jessie
# set env variables
# install base packages
RUN apt-get clean \
&& apt-get update --fix-missing \
&& apt-get install -y \
git \
curl \
gcc \
g++ \
build-essential \
wget \
awscli
WORKDIR /work
# install pdflib
RUN wget http://www.pdflib.com/binaries/TET/510/TET-5.1-Linux-x86_64-Perl-PHP-Python-Ruby.tar.gz
RUN tar -xvzf TET-5.1-Linux-x86_64-Perl-PHP-Python-Ruby.tar.gz
RUN rm TET-5.1-Linux-x86_64-Perl-PHP-Python-Ruby.tar.gz
# install python packages
COPY requirements.in .
RUN pip3 install -r requirements.in
# add the code as the final step so that when we modify the code
# we don't bust the cached layers holding the dependencies and
# system packages.
COPY corvid/ corvid/
COPY scripts/ scripts/
COPY tests/ tests/
COPY .pylintrc .
# not obvious to me whether we need this, so currently commented out
#RUN pip3 install --quiet -e .
CMD [ "/bin/bash" ]