11/7/2023 0 Comments Debian buster to bullseyeYou should install security updates to the base Linux distribution.I just installed armbian buster on my NAS (odroid HC2). While the base debian:buster-slim and python images do get regenerated often, there are windows where a new Debian security fix has been released, but the images have not been regenerated. The python official image does not install Debian security updates ![]() pyc in your own image with the compileall module. If you want to speed up startup very slightly, you may wish to compile the standard library source code to. This is (usually) a good thing, it means you get the latest bug fixes, performance improvements, and support for newer wheel variants. The python official image includes the latest pipĪt the time of writing, the last release of Python 3.5 was in November 2019, but the Docker image for python:3.5-slim-buster includes pip from August 2020. If you really want to use the Debian version of Python, use the equivalent debian:buster-slim as the base image instead, or (these days) the more up-to-date debian:bullseye-slim. You probably don’t want two different versions of Python in the same image mostly it just leads to confusion. That installs an additional Python install in /usr, rather than /usr/local, and it will typically be a different version of Python. Need to ship quickly, and don’t have time to figure out every detail on your own? Read the concise, action-oriented Python on Docker Production Handbook. Note: Outside any specific best practice being demonstrated, the Dockerfiles in this article are not examples of best practices, since the added complexity would obscure the main point of the article. The entrypointįinally, the Dockerfile specifices the entrypoint:įROM python:3.8-slim-buster # THIS IS NOT NECESSARY: RUN apt-get update & apt-get install python3-dev \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \ || apt-mark manual $savedAptMark \Īpt-get purge -y -auto-remove -o APT::AutoRemove::RecommendsImportant = false \ Wget -O get-pip.py " $PYTHON_GET_PIP_URL " \Įcho " $PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -check -strict - \ SavedAptMark = " $(apt-mark showmanual ) " \Īpt-get install -y -no-install-recommends wget \ ![]() # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" ENV PYTHON_PIP_VERSION 20.2.2 # ENV PYTHON_GET_PIP_URL ENV PYTHON_GET_PIP_SHA256 d4d62a0850fe0c2e6325b2cc20d818c580563de5a2038f917e3cb0e25280b4d1 RUN set -ex \ Next, /usr/local/bin/python3 gets an alias /usr/local/bin/python, so you can call it either way: I found this surprising, so I asked, and apparently Python can create Bluetooth sockets, but only if compiled with this package installed. One thing you might notice is that Python requires libbluetooth-dev to compile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |