diff --git a/Dockerfile b/Dockerfile index a3342de..18fca30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,16 @@ FROM dclong/base # GIT: https://github.com/legendu-net/docker-base.git -RUN apt-get update -y \ - && apt-get install -y --no-install-recommends \ - python3 python3-pip python3-venv \ - python3-all-dev python3-setuptools build-essential python3-wheel python3-apt \ +RUN apt-get -y update \ + && apt-get -y install --no-install-recommends \ + python3-all-dev python3-venv build-essential \ + && python3 -m venv /opt/venv \ + && /opt/venv/bin/pip3 install \ + pytype ruff pytest \ + ipython wajig \ && curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh \ - && pip3 install --break-system-packages \ - pytype ruff pytest ipython \ - wajig \ - && ln -svf /usr/bin/python3 /usr/bin/python \ - && ln -svf /usr/bin/pip3 /usr/bin/pip \ && /scripts/sys/purge_cache.sh +ENV PATH="/opt/venv/bin:$PATH" + COPY scripts/ /scripts/