|
| 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/nodejs:%%nodejs_version%%-%RELEASE% |
| 19 | +#!BuildTag: opensuse/bci/nodejs:%%nodejs_version%% |
| 20 | +#!BuildTag: opensuse/bci/nodejs:24 |
| 21 | +#!BuildTag: opensuse/bci/nodejs:latest |
| 22 | +#!BuildTag: opensuse/bci/node:%%nodejs_version%%-%RELEASE% |
| 23 | +#!BuildTag: opensuse/bci/node:%%nodejs_version%% |
| 24 | +#!BuildTag: opensuse/bci/node:24 |
| 25 | +#!BuildTag: opensuse/bci/node:latest |
| 26 | + |
| 27 | +FROM opensuse/tumbleweed:latest |
| 28 | + |
| 29 | +RUN set -euo pipefail; \ |
| 30 | + zypper -n install --no-recommends nodejs24 npm24 update-alternatives curl findutils gawk git-core procps util-linux |
| 31 | + |
| 32 | +# cleanup logs and temporary files |
| 33 | +RUN set -euo pipefail; zypper -n clean -a; \ |
| 34 | + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \ |
| 35 | + rm -rf {/target,}/run/*; \ |
| 36 | + rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \ |
| 37 | + rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \ |
| 38 | + rm -f {/target,}/var/cache/ldconfig/aux-cache; \ |
| 39 | + command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled |
| 40 | + |
| 41 | +# set the day of last password change to empty |
| 42 | +RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow |
| 43 | + |
| 44 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 45 | +# labelprefix=org.opensuse.bci.nodejs |
| 46 | +LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Node.js 24 development" |
| 47 | +LABEL org.opencontainers.image.description="Node.js 24 development container based on the openSUSE Tumbleweed Base Container Image." |
| 48 | +LABEL org.opencontainers.image.version="%%nodejs_version%%" |
| 49 | +LABEL org.opencontainers.image.url="https://www.opensuse.org" |
| 50 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 51 | +LABEL org.opencontainers.image.vendor="openSUSE Project" |
| 52 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 53 | +LABEL org.opencontainers.image.ref.name="%%nodejs_version%%-%RELEASE%" |
| 54 | +LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/nodejs:%%nodejs_version%%-%RELEASE%" |
| 55 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 56 | +LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI" |
| 57 | +LABEL org.opensuse.release-stage="released" |
| 58 | +# endlabelprefix |
| 59 | +LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%" |
| 60 | +ENV NODE_VERSION="24" |
0 commit comments