Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
9fb8b86
1
Parent(s):
acd0e28
server instead of standalone for this structure
Browse files- .gitignore +1 -1
- Dockerfile +1 -1
.gitignore
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
|
| 11 |
# next.js
|
| 12 |
/.next/
|
| 13 |
-
|
| 14 |
# production
|
| 15 |
/build
|
| 16 |
|
|
|
|
| 10 |
|
| 11 |
# next.js
|
| 12 |
/.next/
|
| 13 |
+
/out/
|
| 14 |
# production
|
| 15 |
/build
|
| 16 |
|
Dockerfile
CHANGED
|
@@ -50,8 +50,8 @@ COPY --from=builder /app/public ./public
|
|
| 50 |
|
| 51 |
# Automatically leverage output traces to reduce image size
|
| 52 |
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
| 53 |
-
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
| 54 |
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
|
|
|
| 55 |
|
| 56 |
USER nextjs
|
| 57 |
|
|
|
|
| 50 |
|
| 51 |
# Automatically leverage output traces to reduce image size
|
| 52 |
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
|
|
|
| 53 |
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
| 54 |
+
COPY --from=builder --chown=nextjs:nodejs /app/.next/server ./.next/server
|
| 55 |
|
| 56 |
USER nextjs
|
| 57 |
|