2022-04-27 12:16:50 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
2022-07-18 14:07:48 +00:00
|
|
|
#!BuildTag: opensuse/bci/python:3.9
|
|
|
|
#!BuildTag: opensuse/bci/python:3.9-%RELEASE%
|
|
|
|
#!BuildTag: opensuse/bci/python:3
|
2022-12-21 14:24:16 +00:00
|
|
|
#!BuildTag: opensuse/bci/python:3-%RELEASE%
|
2022-11-23 09:33:35 +00:00
|
|
|
|
2022-04-27 12:16:50 +00:00
|
|
|
FROM opensuse/tumbleweed:latest
|
|
|
|
|
2022-07-18 14:07:48 +00:00
|
|
|
MAINTAINER openSUSE (https://www.opensuse.org/)
|
2022-04-27 12:16:50 +00:00
|
|
|
|
|
|
|
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
2022-07-18 14:07:48 +00:00
|
|
|
# labelprefix=org.opensuse.bci.python
|
2023-06-26 10:29:07 +00:00
|
|
|
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Python 3.9 development"
|
|
|
|
LABEL org.opencontainers.image.description="Python 3.9 development container based on the openSUSE Tumbleweed Base Container Image."
|
2022-04-27 12:16:50 +00:00
|
|
|
LABEL org.opencontainers.image.version="3.9"
|
2022-07-18 14:07:48 +00:00
|
|
|
LABEL org.opencontainers.image.url="https://www.opensuse.org"
|
2022-04-27 12:16:50 +00:00
|
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
2022-07-18 14:07:48 +00:00
|
|
|
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
2023-03-03 07:52:44 +00:00
|
|
|
LABEL org.opencontainers.image.source="%SOURCEURL%"
|
2022-07-18 14:07:48 +00:00
|
|
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/python:3.9-%RELEASE%"
|
2022-04-27 12:16:50 +00:00
|
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
2023-06-01 15:35:27 +00:00
|
|
|
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime"
|
|
|
|
LABEL org.opensuse.release-stage="released"
|
2022-07-18 14:07:48 +00:00
|
|
|
|
2022-04-27 12:16:50 +00:00
|
|
|
# endlabelprefix
|
|
|
|
|
2022-12-07 17:34:45 +00:00
|
|
|
RUN set -euo pipefail; zypper -n in --no-recommends python39-devel python39 python39-pip curl git-core python39-wheel; zypper -n clean; rm -rf /var/log/*
|
2022-04-27 12:16:50 +00:00
|
|
|
ENV PYTHON_VERSION="%%py39_ver%%"
|
|
|
|
ENV PIP_VERSION="%%pip_ver%%"
|
|
|
|
|
2022-07-18 14:07:48 +00:00
|
|
|
RUN set -euo pipefail; ln -s /usr/bin/python3.9 /usr/local/bin/python3; \
|
2022-11-23 09:33:35 +00:00
|
|
|
ln -s /usr/bin/pydoc3.9 /usr/local/bin/pydoc
|