adorable-psychiatrist-59834
06/02/2025, 9:19 PMARG BASE=:image
FROM $BASE
curved-television-6568
06/03/2025, 10:40 AMadorable-psychiatrist-59834
06/03/2025, 5:43 PMadorable-psychiatrist-59834
06/03/2025, 8:55 PM> cat release/python3/BUILD
docker_image(
name="python-base-3.11",
source=None,
repository="python-base-3.11",
tags=["docker-base"],
instructions=[
"FROM python:3.11-slim",
…
],
skip_push=True,
)
adorable-psychiatrist-59834
06/03/2025, 8:57 PMARG BASE=release/python3:python-base-3.11
FROM $BASE AS deps
COPY ... /binary.pex
RUN PEX_TOOLS=1 /usr/local/bin/python3.11 /binary.pex venv --scope=deps --compile /bin/app
FROM $BASE AS srcs
COPY ... /binary.pex
RUN PEX_TOOLS=1 /usr/local/bin/python3.11 /binary.pex venv --scope=srcs --compile /bin/app
FROM $BASE
ENTRYPOINT ["/bin/app/pex"]
COPY --from=deps /bin/app /bin/app
COPY --from=srcs /bin/app /bin/app
Works locally, just not in github actions.adorable-psychiatrist-59834
06/03/2025, 8:59 PMfailed to solve: python-base-3.11:latest: failed to resolve source metadata for <http://docker.io/library/python-base-3.11:latest|docker.io/library/python-base-3.11:latest>:
adorable-psychiatrist-59834
06/03/2025, 9:08 PMARG BASE=release/python3:python-base-3.11
FROM $BASE AS base
...
FROM base AS srcs
...
...
FROM base
adorable-psychiatrist-59834
06/03/2025, 9:10 PMadorable-psychiatrist-59834
06/03/2025, 9:46 PM#9 naming to <http://docker.io/library/python-base-3.11:latest|docker.io/library/python-base-3.11:latest>
So that when my downstream dockerfile tries to resolve python-base-3.11:latest it just works.
Github actions does NOT do this. I'm guessing it's because it's using the 'docker-container' driver. it does re-import but it does not properly name the base image to python-base-3.11 in order for the downstream to resolve it.
I bet if i disabled buildx it would work in github actions...
YUP. This looks like a difference between buildx 'docker-container' driver and 'default' driver that's triggering this behavior. I'll search for known bugs and file one if necessary.curved-television-6568
06/08/2025, 2:12 PM