forked from okfn/messytables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) · 919 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
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
python-pip \
python-dev
RUN apt-get install -y python-numpy python-lxml
RUN apt-get install -y python3 python3-pip python3-lxml python3-nose
# chardet version is out of date; old version doesn't detect UTF8 w/ BOM
RUN pip3 install --upgrade chardet
RUN apt-get install -y python-nose
RUN locale-gen en_GB.UTF-8
RUN mkdir /home/messytables && \
chown nobody /home/messytables
USER nobody
ENV HOME=/home/messytables \
PATH=/home/messytables/.local/bin:$PATH \
LANG=en_GB.UTF-8
# LANG needed for httpretty install on Py3
WORKDIR /home/messytables
COPY ./requirements-test.txt /home/messytables/
RUN pip install --user -r /home/messytables/requirements-test.txt
RUN pip3 install --user -r /home/messytables/requirements-test.txt
RUN pip install --user pdftables
COPY . /home/messytables/