-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile.j2
More file actions
24 lines (21 loc) · 1016 Bytes
/
Copy pathContainerfile.j2
File metadata and controls
24 lines (21 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG BASE_VERSION=15.1-pkg-latest
FROM ghcr.io/daemonless/base-core:${BASE_VERSION}
ARG PKG_NAME
ARG FREEBSD_ARCH=amd64
LABEL org.opencontainers.image.title="Node.js" \
org.opencontainers.image.description="JavaScript runtime built on Chrome's V8 engine, with npm included for building and running Node.js applications." \
org.opencontainers.image.source="https://github.com/daemonless/node" \
org.opencontainers.image.url="https://nodejs.org/" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.vendor="daemonless" \
org.opencontainers.image.authors="daemonless" \
io.daemonless.category="Base" \
io.daemonless.arch="${FREEBSD_ARCH}"
# Install Node.js, npm, and corepack for package-manager shims.
RUN pkg update && \
pkg install -y ${PKG_NAME} npm-${PKG_NAME} corepack && \
corepack enable && \
mkdir -p /app && \
pkg query %v ${PKG_NAME} > /app/version && \
pkg clean -ay && \
rm -rf /var/cache/pkg/* /var/db/pkg/repos/*