forked from Belval/TextRecognitionDataGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (35 loc) · 858 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
40
41
# We use Ubuntu as base image
FROM ubuntu:18.04
WORKDIR /app
# Install dependencies
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
git \
locales \
python3-pip \
libsm6 \
libfontconfig1 \
libxrender1 \
zlib1g-dev \
libjpeg-dev \
libpng-dev \
libfreetype6-dev \
libxext6 \
libraqm-dev \
&& rm -rf /var/lib/apt/lists/*
# Set the locale
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
COPY . /app/
RUN git clone https://github.com/python-pillow/Pillow.git \
&& cd Pillow \
&& git checkout 7.0.x \
&& python3 setup.py build_ext --enable-freetype install
RUN python3 setup.py install
RUN pip3 install -r requirements.txt
RUN pip3 install pytest
RUN pip3 install codecov