from Hacker News

Python Docker Image

by djstein on 2/8/24, 6:32 PM with 2 comments

  • by djstein on 2/8/24, 6:32 PM

    Hey HN, wrote up a guide on how I've been creating Python Docker images. I seem to always need to install a software dependency that forces me to break out of the basic Python tags. A great example is installing Node and Python at the same time or creating containers that can use PyTorch.

    Love feedback to on how to make the image better if you've got any!

  • by JojoFatsani on 2/8/24, 7:15 PM

    This may be more complex than using a multi-stage build. (eg, "Builder" image, pull artifacts into "Runner" image)