Skip to content

Commit 9a7e6f0

Browse files
authored
Merge pull request #87 from Preocts/preocts-docker
Cleaner Dockerfile
2 parents a303eeb + 00c41d9 commit 9a7e6f0

2 files changed

Lines changed: 3 additions & 21 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ FROM ubuntu:focal
33
RUN apt-get update
44
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends software-properties-common
55
RUN add-apt-repository -y 'ppa:deadsnakes/ppa'
6-
RUN DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends python3.8 python3.8-venv
6+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.8 python3.8-venv python3.9 python3.10 python3.11 python3.12
77
RUN rm -rf /var/lib/apt/lists/*
88

99
WORKDIR /src
1010

1111
ENV PATH=/venv/bin:$PATH
1212
RUN python3.8 -m venv /venv
13-
COPY requirements/ /src/requirements/
14-
RUN python3.8 -m pip install --upgrade -r requirements/requirements-dev.txt -r requirements/requirements-test.txt --no-cache-dir
13+
RUN . /venv/bin/activate
14+
RUN python -m pip install --upgrade tox --no-cache-dir
1515

1616
COPY . /src
17-
RUN python3.8 -m pip install . --no-cache-dir
1817

1918
CMD ["tox", "-r"]

alt_files/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)