Improve Dockerfile

This commit is contained in:
Lukáš Kucharczyk 2023-01-02 18:37:45 +01:00
parent 7e0d8d90d7
commit 7039e442d9
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
FROM python:3.10-slim-bullseye FROM python:3.10-slim-bullseye
RUN apt update && apt install --no-install-recommends --yes git RUN apt update \
&& apt install --no-install-recommends --yes \
git \
&& rm -rf /var/lib/apt/lists/*
ENV VIRTUAL_ENV=/opt/venv ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv pip $VIRTUAL_ENV RUN python3 -m venv pip $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH" ENV PATH="$VIRTUAL_ENV/bin:$PATH"