Skip to content

Commit 4e95a63

Browse files
committed
Clean up docker, remove redundant installs
1 parent a303eeb commit 4e95a63

1 file changed

Lines changed: 3 additions & 4 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"]

0 commit comments

Comments
 (0)