Fix frontend Docker build on arm64
This commit is contained in:
+2
-1
@@ -19,7 +19,8 @@ COPY . .
|
||||
# Set environment variable for build
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN npm run build
|
||||
# Turbopack is not supported for this ARM64 Alpine/QEMU build path.
|
||||
RUN npm run build:docker
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM base AS runner
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"build:docker": "next build --webpack",
|
||||
"start": "next start",
|
||||
"lint": "eslint",
|
||||
"test": "jest",
|
||||
|
||||
Reference in New Issue
Block a user