From: Michael Halstead <[email protected]> ubuntu:jammy provides python 3.10.6 which supports current bitbake. Dropped unneeded python2 packages. Moved locale generation high to reduce error messages during image building.
Signed-off-by: Michael Halstead <[email protected]> Signed-off-by: Tim Orling <[email protected]> --- Dockerfile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index a6c7ad2..d8c38e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # See README for how to use this. -FROM debian:buster +FROM ubuntu:jammy LABEL maintainer="Michael Halstead <[email protected]>" ENV PYTHONUNBUFFERED=1 \ @@ -17,30 +17,29 @@ ENV PYTHONUNBUFFERED=1 \ COPY requirements.txt / RUN DEBIAN_FRONTEND=noninteractive apt-get update \ + && apt-get install -y locales \ + && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ + && locale-gen en_US.UTF-8 \ + && update-locale \ && apt-get install -y --no-install-recommends \ autoconf \ g++ \ gcc \ make \ - python-pip \ - python-mysqldb \ - python-dev \ - python-pil \ - python-wheel \ + python2 \ python3-pip \ python3-mysqldb \ python3-dev \ python3-pil \ python3-wheel \ - libz-dev \ + zlib1g-dev \ libfreetype6-dev \ libjpeg-dev \ - libmariadbclient-dev \ - locales \ + libmariadb-dev-compat \ netcat-openbsd \ curl \ wget \ - git-core \ + git \ vim \ rpm2cpio \ rpm \ @@ -51,7 +50,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \ && pip3 install gunicorn \ && pip3 install setuptools \ && pip3 install -r /requirements.txt \ - && apt-get purge -y autoconf g++ make python3-dev libjpeg-dev libmariadbclient-dev \ + && apt-get purge -y autoconf g++ make python3-dev libjpeg-dev \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* \ && apt-get clean -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#58828): https://lists.yoctoproject.org/g/yocto/message/58828 Mute This Topic: https://lists.yoctoproject.org/mt/95713258/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
