Improve Dockerfile
This commit is contained in:
parent
7e0d8d90d7
commit
7039e442d9
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue