Sitemap

Dockerfile For Python, Alpine, and OpenJDK

Mar 28, 2021

--

Here’s a Dockerfile that:

  1. Starts with Alpine 3.12 and OpenJDK 15
  2. Installs Python 3.9.1 using pyenv
  3. Updates Alpine packages and removes the ones that are only needed for installing Python
  4. Runs a Python program when the container starts using the user ‘appuser’ instead of root

--

--

Terris Linenbach
Terris Linenbach

Written by Terris Linenbach

Coder since 1980. Always seeking the Best Way. CV: https://terris.com/cv

No responses yet