custom-containers/language-containers/nodejs/Containerfile.node18

24 lines
830 B
Plaintext

# Base Node.js container image
# Written by Wyatt J. Miller, 2023, 2024
# This image is opinionated, but you're welcome to customize as much as you like
# Start with the Fedora 39 image
FROM scm.wyattjmiller.com/wymiller/base_container:latest
# Label it right, ya know?
ENV NAME=custom_base_node18_image VERSION=1.1
LABEL com.github.containers.toolbox="true" \
com.redhat.component="$NAME" \
name="$NAME" \
version="$VERSION" \
usage="Wyatt's base Node.js image" \
summary="Wyatt's custom base Node 18 image" \
maintainer="Wyatt J. Miller <wyatt@wyattjmiller.com>" \
vendor="Miller Web Solutions"
# Install node 18 and related npm
RUN dnf install nodejs18 nodejs18-npm -y -q
RUN ln -s /usr/bin/node-18 /usr/bin/node
RUN ln -s /usr/bin/npm-18 /usr/bin/npm
RUN npm install typescript -g