-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (33 loc) · 1.31 KB
/
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:2.7-jessie
WORKDIR /usr/src/app
VOLUME /data
RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
RUN apt-get -o Acquire::Check-Valid-Until=false update && \
apt-get -y upgrade && \
apt-get -y autoremove && \
apt-get install -y --no-install-recommends \
ca-certificates \
python-numpy \
python-opencv \
git \
curl \
libdc1394-22 \
libjpeg-turbo-progs \
graphicsmagick \
libgraphicsmagick++3 \
libgraphicsmagick++1-dev \
libgraphicsmagick3 \
libboost-python-dev \
gifsicle \
ffmpeg
RUN git clone --depth 1 https://github.com/neighborhoods/tc_aws.git /tc_aws
COPY requirements.txt requirements.txt
RUN pip install --upgrade pip==20.0.2 && pip install --no-cache-dir -r requirements.txt
COPY conf/thumbor.conf.tpl thumbor.conf.tpl
ENV PYTHONPATH /usr/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages
COPY entrypoint.sh /
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["thumbor"]