[PYTHON] How to write Docker base image

I read the best practices

Best Practice

If possible, use the current official repository as the source for your image. We recommend the Debian image. This is because it is very well managed and kept to be the smallest in the distribution (currently less than 100 MB).

So let's use the Debian system.

How do you choose

  1. Decide on a base OS. ubuntu, centos, python, etc.
  2. Select a formula with the docker search command. It's safe to use the one with the most STARS.
  3. Search the official image on Dockerhub and you will find a list of Tags, so select from there.
  4. FROM {image name}: {tag name}

Example

FROM python:rc-alpine3.12

Recommended Posts

How to write Docker base image
XPath Basics (2) -How to write XPath
How to write a Python class
How to write soberly in pandas
Flask reuse How to write html
How to delete a Docker container
How to write Django1.9 environment-independent wsgi.py
Notes on how to write requirements.txt
How to log in to Docker + NGINX
Qiita (1) How to write a code name
How to set optuna (how to write search space)
How to create an NVIDIA Docker environment
How to write Python document comments (Docstrings)
How to adjust image contrast in Python
How to use tensorflow under docker environment
How to write this process in Perl?
How to write Ruby to_s in Python
Summary of how to write AWS Lambda
How to install python3 with docker centos
How to write pydoc and multi-line comments
Reintroduction to Docker
How to write urlfetch unittest on GAE / P
How to code a drone using image recognition
How to delete log with Docker, not to collect log
How to use Python Image Library in python3 series
How to reflect ImageField in Django + Docker (pillow)
How to crop an image with Python + OpenCV
Answer to "Offline real-time how to write F02 problem"
How to write regular expression patterns in Linux
How to use PyTorch-based image processing library "Kornia"
Answer to "Offline Real-time How to Write E13 Problem"
How to write async and await in Vue.js
How to write a named tuple document in 2020
[Go] How to write or call a function
How to write a ShellScript bash case statement
How to make AWS rekognition recognize local image files
How to use Python-shell
20th Offline Real-time How to Write Problems in Python
How to use tf.data
How to use virtualenv
How to use Seaboan
How to write a GUI using the maya command
How to use shogun
How to use Pandas 2
How to write string concatenation in multiple lines in Python
How to scrape image data from flickr with python
How to read PyPI
How to install pip
How to use Virtualenv
How to use numpy.vectorize
How to update easy_install
How to install archlinux
How to use pytest_report_header
How to restart gunicorn
How to install python
How to virtual host
How to write a list / dictionary type of Python3
How to debug selenium
How to use partial
How to use Bio.Phylo
How to read JSON