Skip to content

Commit 33ddc65

Browse files
Fix Docker Permission mount
Update Dockerfile
1 parent a13bc21 commit 33ddc65

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

apps/landing-page/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
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

1010
FROM 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; \

0 commit comments

Comments
 (0)