How can I copy `python_sources` to `Dockerfile`?
# general
s
How can I copy
python_sources
to
Dockerfile
?
d
I might be misunderstanding what you’re trying to achieve, but normally I’ll build a pex binary separately (which may on sources), then have that copied into the docker container. Apologies if I’ve misunderstood. https://www.pantsbuild.org/blog/2022/08/02/optimizing-python-docker-deploys-using-pants#a-very-simple-example
s
I can't do that. I need to have hot reload on the artifact (or just copy the files) - i.e. I want to use docker-compose with FastAPI, and have hot reload.
I want to use
python_sources(restartable=True)
, but I'm accepting alternative solutions.