What's this? - See in thread.
# general
s
What's this? - See in thread.
Copy code
#3 [internal] load metadata for <http://docker.io/library/python:3.11-slim|docker.io/library/python:3.11-slim>
#3 sha256:26a8ce646d096774dd6c056afa8ddb0d4ef5f55030fe58fae47eda65cdc245a7
Failed to fire hook: while creating logrus local file hook: user: Current requires cgo or $USER, $HOME set in environment
[2023-08-06T12:29:46.736620000Z][docker-credential-desktop][F] get system info: retrieving product name: exec: "sw_vers": executable file not found in $PATH
[goroutine 1 [running, locked to thread]:
[common/pkg/system.init.0()
[       common/pkg/system/os_info.go:32 +0x1bc
#3 ERROR: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``
------
 > [internal] load metadata for <http://docker.io/library/python:3.11-slim|docker.io/library/python:3.11-slim>:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``
BUILD
Copy code
python_sources()

python_requirements(
    name="reqs",
    source="pyproject.toml",
)

docker_image(
    name="docker",
)

pex_binary(
    name="bin",
    entry_point="backend/__main__.py",
    dependencies=[":backend"],
    restartable=True,
)
Image:
Copy code
FROM python:3.11-slim

ENTRYPOINT [ "/bin/app" ]

COPY src.backend/bin.pex /bin/app
Ok... I just deactivated buildkit 🤔
n
Does this help?
e
The message is pretty clear about missing env vars of various sorts including USER, HOME and PATH, did you try: https://www.pantsbuild.org/docs/reference-docker#env_vars