SLE BCI Node.js 18 development

Node.js 18 development container based on the SLE Base Container Image.

Get Image
Digest:
sha256:b0ea81e4c50b44013418a5c8120b0f1b2a6351aa02b546ebdcb9f1adb2a67993
b0ea81e4c
Repository:
registry.suse.com/bci/nodejs:18

Node.js 18 development container image

Redistributable SLSA Provenance: Available

Description

Node.js is a free, open-source, cross-platform JavaScript run-time environment that lets developers write server-side applications and tools outside of a browser.

Usage

To deploy an application, install dependencies, copy the sources, and configure the application's main script:

FROM registry.suse.com/bci/nodejs:18

WORKDIR /app

COPY package.json package-lock.json ./
RUN npm install

COPY . .

EXPOSE 3000

CMD [ "node", "./server.js" ]

Build and run the container image:

$ podman build -t my-node-app .
$ podman run -it -p 3000:3000 --rm my-node-app

The example above assumes that there is a package-lock.lock file in the application directory. To generate a package-lock.lock file, use the following command:

$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/nodejs:18 npm i --package-lock-only

To run a single script inside a container, use the following command:

$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/nodejs:18 node script.js

Licensing

SPDX-License-Identifier: MIT

This documentation and the build recipe are licensed as MIT. The container itself contains various software components under various open source licenses listed in the associated Software Bill of Materials (SBOM).

This image is based on SLE BCI, a stable and redistributable foundation for software innovation. SLE BCI is enterprise-ready, and it comes with an option for support.

See the SLE BCI EULA for further information.

  • Image Data

    Last Built: 17 Jul 08:16 UTC

    Size: 93.6 MB

    Support Level: L3

    Supported until: 31 Dec 2024


  • Health Index
    A

    No vulnerabilities found

    Last Scan:

    4 days ago