-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (32 loc) · 868 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
FROM python:3.7-alpine
RUN apk update && apk add --update --no-cache \
bash \
git \
curl \
postgresql-client \
postgresql-dev \
build-base \
gettext \
libffi-dev \
libxslt-dev \
libmagic
RUN apk add jpeg-dev \
zlib-dev \
freetype-dev \
openjpeg-dev
ENV EXIFTOOL_VERSION=11.65
RUN apk add --no-cache perl make
RUN cd /tmp \
&& wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-${EXIFTOOL_VERSION}.tar.gz \
&& tar -zxvf Image-ExifTool-${EXIFTOOL_VERSION}.tar.gz \
&& cd Image-ExifTool-${EXIFTOOL_VERSION} \
&& perl Makefile.PL \
&& make test \
&& make install \
&& cd .. \
&& rm -rf Image-ExifTool-${EXIFTOOL_VERSION}
RUN pip3 install --upgrade pip
RUN pip3 install -U pip setuptools
WORKDIR /base
COPY requirements.txt /base
RUN pip3 install --no-cache-dir --upgrade -r requirements.txt