Server Version: 25.0.3
Client: Docker Engine - Community
Version: 25.0.3
$ docker build -t tlsassistant .
[+] Building 3.5s (11/12) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 793B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:latest 1.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/8] FROM docker.io/library/ubuntu:latest@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15 0.0s
=> [internal] load build context 1.1s
=> => transferring context: 10.49MB 1.1s
=> CACHED [2/8] RUN apt-get update && apt-get install -y git python3-dev python3-pip sudo bsdmainutils locales dnsutils 0.0s
=> CACHED [3/8] RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen 0.0s
=> CACHED [4/8] RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata keyboard-configuration 0.0s
=> CACHED [5/8] COPY . /tlsassistant 0.0s
=> CACHED [6/8] WORKDIR /tlsassistant 0.0s
=> ERROR [7/8] RUN pip3 install -r requirements.txt 0.8s
------
> [7/8] RUN pip3 install -r requirements.txt:
0.705 error: externally-managed-environment
0.705
0.705 × This environment is externally managed
0.705 ╰─> To install Python packages system-wide, try apt install
0.705 python3-xyz, where xyz is the package you are trying to
0.705 install.
0.705
0.705 If you wish to install a non-Debian-packaged Python package,
0.705 create a virtual environment using python3 -m venv path/to/venv.
0.705 Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0.705 sure you have python3-full installed.
0.705
0.705 If you wish to install a non-Debian packaged Python application,
0.705 it may be easiest to use pipx install xyz, which will manage a
0.705 virtual environment for you. Make sure you have pipx installed.
0.705
0.705 See /usr/share/doc/python3.12/README.venv for more information.
0.705
0.705 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0.705 hint: See PEP 668 for the detailed specification.
------
Dockerfile:27
--------------------
25 | WORKDIR "/tlsassistant"
26 |
27 | >>> RUN pip3 install -r requirements.txt
28 |
29 | ENV TLSA_IN_A_DOCKER_CONTAINER Yes
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install -r requirements.txt" did not complete successfully: exit code: 1
The build completes successfully.