Hey all, I'm having an issue with a Docker build f...
# general
c
Hey all, I'm having an issue with a Docker build for a module in my project. This is pretty much as simple as it gets so I'm scratching my head as to why it's failing. My module is located at root/src/python/transaction_data and has an init file, a main file, and the BUILD file. My build file looks like this.
Copy code
python_sources(
    name="transaction_data",
    skip_mypy=True,
)
pex_binary(name="bin", entry_point="__main__.py")
My Dockerfile is in root/docker/transaction_data, along with a BUILD file. Here is the BUILD file:
Copy code
docker_image(
    name="transaction_data",
)
And here is the Dockerfile:
Copy code
FROM python:3.11
ENTRYPOINT ["/bin/main.pex"]
COPY src.python.transaction_data/bin.pex /bin
When I run pants package, the build starts but just hangs indefinitely. Any ideas here would be helpful.
b
Have you tried running
pants -ldebug package <target>
? That should get you additional debug logs and may help triangulate the source of the problem
c
Ah, thank you. Somehow I missed that command and it certainly made the problem obvious.