-
Notifications
You must be signed in to change notification settings - Fork 984
/
Dockerfile
43 lines (36 loc) · 828 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
42
# We use Ubuntu as base image
FROM ubuntu:22.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 \
virtualenv \
libgl1-mesa-glx \
&& 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
RUN virtualenv --python python3 /env
ENV PATH="/env/bin:$PATH"
COPY . /app/
RUN pip install --upgrade pip
RUN pip install codecov
RUN python setup.py install
RUN pip install -r requirements.txt
RUN pip install pytest