File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# ============================================
44
55# IMPORTANT: Node.js Version Maintenance
6- # This Dockerfile uses Node.js 24.13.0-slim , which was the latest LTS version at the time of writing.
6+ # This Dockerfile uses Node.js 24, which was the latest LTS version at the time of writing.
77# To ensure security and compatibility, regularly update the NODE_VERSION ARG to the latest LTS version.
8- ARG NODE_VERSION=24.13.0-slim
8+ ARG NODE_VERSION=24
99
1010FROM node:${NODE_VERSION} AS dependencies
1111
@@ -59,7 +59,9 @@ ENV NODE_ENV=production
5959# This caches the .next/cache directory across builds, but it also prevents
6060# .next/cache/fetch-cache from being included in the final image, meaning
6161# cached fetch responses from the build won't be available at runtime.
62- RUN if [ -f package-lock.json ]; then \
62+ RUN --mount=type=secret,id=github_token \
63+ export GITHUB_TOKEN="$(cat /run/secrets/github_token 2>/dev/null || echo "")" && \
64+ if [ -f package-lock.json ]; then \
6365 npm run build; \
6466 elif [ -f yarn.lock ]; then \
6567 corepack enable yarn && yarn build; \
You can’t perform that action at this time.
0 commit comments