Commit ·
c2e4c8e
1
Parent(s): 2b66827
Use npx to run next build command
Browse files- Replace 'npm run build' with 'npx next build'
- This ensures the next command is found in node_modules/.bin
- Should fix the 'next: not found' error
- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -13,8 +13,8 @@ RUN npm ci
|
|
| 13 |
# Copy the rest of the application
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
-
# Build the application
|
| 17 |
-
RUN
|
| 18 |
|
| 19 |
# Remove dev dependencies to reduce image size
|
| 20 |
RUN npm prune --production
|
|
|
|
| 13 |
# Copy the rest of the application
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
+
# Build the application using npx to ensure next is found
|
| 17 |
+
RUN npx next build
|
| 18 |
|
| 19 |
# Remove dev dependencies to reduce image size
|
| 20 |
RUN npm prune --production
|