-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tox
38 lines (34 loc) · 1.3 KB
/
Dockerfile.tox
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
FROM ubuntu:20.04 AS toxic_base
RUN ["apt-get", "update"]
RUN apt-get update && apt-get -y install \
software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get update && apt-get -y install python \
python3-pip \
python-setuptools \
python3.6 \
python3.6-distutils \
python3.10 \
openjdk-11-jre \
zip
# # docker for digital-derivans
RUN apt-get update && apt-get -y install ca-certificates curl gnupg \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& chmod a+r /etc/apt/keyrings/docker.gpg
RUN echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update && apt-get -y install docker-ce docker-ce-cli
RUN systemctl enable docker.service
FROM toxic_base AS toxic
RUN pip install pip tox
RUN mkdir -p /opt/ulb/digiflow
WORKDIR /opt/ulb/digiflow
COPY ./tox.ini .
COPY ./pyproject.toml .
COPY ./requirements.txt .
COPY ./src/digiflow/ ./digiflow
COPY ./src/digiflow/resources/digilife.ini ./src/digiflow/resources/digilife.ini
COPY ./tests/ ./tests