2016-03-02 19:35:07 +01:00
|
|
|
FROM debian:jessie
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update -y && \
|
2017-09-10 07:22:30 +02:00
|
|
|
apt-get install -y --no-install-recommends ca-certificates libimage-exiftool-perl python2.7 python-pip python-pyexiv2 wget make && \
|
2016-03-02 19:35:07 +01:00
|
|
|
pip install --upgrade pip setuptools && \
|
|
|
|
apt-get autoremove -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2017-09-10 07:22:30 +02:00
|
|
|
RUN apt-get update -qq && \
|
|
|
|
apt-get install -y locales -qq && \
|
|
|
|
locale-gen en_US.UTF-8 en_us && \
|
|
|
|
dpkg-reconfigure locales && \
|
|
|
|
locale-gen C.UTF-8 && \
|
|
|
|
/usr/sbin/update-locale LANG=C.UTF-8
|
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
ENV LANGUAGE C.UTF-8
|
|
|
|
ENV LC_ALL C.UTF-8
|
|
|
|
|
|
|
|
RUN wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-10.20.tar.gz && \
|
|
|
|
gzip -dc Image-ExifTool-10.20.tar.gz | tar -xf - && \
|
|
|
|
cd Image-ExifTool-10.20 && perl Makefile.PL && \
|
|
|
|
make install && cd ../ && rm -r Image-ExifTool-10.20
|
|
|
|
|
2016-01-10 20:00:56 +01:00
|
|
|
COPY requirements.txt /opt/elodie/requirements.txt
|
|
|
|
COPY docs/requirements.txt /opt/elodie/docs/requirements.txt
|
|
|
|
COPY elodie/tests/requirements.txt /opt/elodie/elodie/tests/requirements.txt
|
|
|
|
WORKDIR /opt/elodie
|
2016-03-02 19:35:07 +01:00
|
|
|
RUN pip install -r docs/requirements.txt && \
|
2016-01-10 20:00:56 +01:00
|
|
|
pip install -r elodie/tests/requirements.txt && \
|
2016-03-02 19:35:07 +01:00
|
|
|
rm -rf /root/.cache/pip
|
2016-01-10 20:00:56 +01:00
|
|
|
|
|
|
|
COPY . /opt/elodie
|
|
|
|
|
2017-05-17 07:54:35 +02:00
|
|
|
CMD ["/bin/bash"]
|