|
| 1 | +# SPDX-License-Identifier: MIT |
| 2 | + |
| 3 | +# Copyright (c) 2026 SUSE LLC |
| 4 | + |
| 5 | +# All modifications and additions to the file contributed by third parties |
| 6 | +# remain the property of their copyright owners, unless otherwise agreed |
| 7 | +# upon. |
| 8 | + |
| 9 | +# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. |
| 10 | +# It is maintained by the BCI team and generated by |
| 11 | +# https://github.com/SUSE/BCI-dockerfile-generator |
| 12 | + |
| 13 | +# Please submit bugfixes or comments via https://bugs.opensuse.org/ |
| 14 | +# You can contact the BCI team via https://github.com/SUSE/bci/discussions |
| 15 | + |
| 16 | +#!UseOBSRepositories |
| 17 | + |
| 18 | +#!BuildTag: opensuse/bci/python:%%py314_ver%%-base-%RELEASE% |
| 19 | +#!BuildTag: opensuse/bci/python:%%py314_ver%%-base |
| 20 | +#!BuildTag: opensuse/bci/python:3.14-base |
| 21 | +#!BuildTag: opensuse/bci/python:latest |
| 22 | +#!BcntSyncTag: python-3.14-image |
| 23 | + |
| 24 | +FROM opensuse/tumbleweed:latest |
| 25 | + |
| 26 | +RUN set -euo pipefail; \ |
| 27 | + zypper -n install --no-recommends curl findutils gawk git-core procps python314 python314-devel python314-pip python314-pipx python314-wheel util-linux |
| 28 | + |
| 29 | +# cleanup logs and temporary files |
| 30 | +RUN set -euo pipefail; zypper -n clean -a; \ |
| 31 | + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \ |
| 32 | + rm -rf {/target,}/run/*; \ |
| 33 | + rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \ |
| 34 | + rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \ |
| 35 | + rm -f {/target,}/var/lib/zypp/AnonymousUniqueId; \ |
| 36 | + rm -f {/target,}/var/lib/zypp/AutoInstalled; \ |
| 37 | + rm -f {/target,}/var/cache/ldconfig/aux-cache |
| 38 | + |
| 39 | +# set the day of last password change to empty |
| 40 | +RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow |
| 41 | + |
| 42 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 43 | +# labelprefix=org.opensuse.bci.python |
| 44 | +LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Python 3.14 development" |
| 45 | +LABEL org.opencontainers.image.description="Python 3.14 development container based on the openSUSE Tumbleweed Base Container Image." |
| 46 | +LABEL org.opencontainers.image.version="%%py314_ver%%" |
| 47 | +LABEL org.opencontainers.image.url="https://www.opensuse.org" |
| 48 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 49 | +LABEL org.opencontainers.image.vendor="openSUSE Project" |
| 50 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 51 | +LABEL org.opencontainers.image.ref.name="%%py314_ver%%-base-%RELEASE%" |
| 52 | +LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/python:%%py314_ver%%-base-%RELEASE%" |
| 53 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 54 | +LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI" |
| 55 | +LABEL org.opensuse.release-stage="released" |
| 56 | +# endlabelprefix |
| 57 | +LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.base.md)%" |
| 58 | +ENV PIPX_BIN_DIR="/usr/local/bin" |
| 59 | +ENV PIPX_HOME="/usr/local/lib/pipx" |
| 60 | +ENV PIPX_MAN_DIR="/usr/local/man" |
| 61 | +ENV PIP_VERSION="%%pip_ver%%" |
| 62 | +ENV PYTHON_VERSION="%%py314_ver%%" |
| 63 | +RUN set -euo pipefail; if test -x /usr/bin/python3; then echo 'is_system_py is wrong - report a bug'; exit 1; fi; \ |
| 64 | + ln -s /usr/bin/python3.14 /usr/local/bin/python3; \ |
| 65 | + ln -s /usr/bin/pydoc3.14 /usr/local/bin/pydoc |
0 commit comments