Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
•
1de639c
1
Parent(s):
62188d1
fix
Browse files- Dockerfile +2 -2
- next.config.js +1 -3
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/static ./.next/static
|
54 |
-
COPY --from=builder --chown=nextjs:nodejs /app/.next/server ./.next/server
|
55 |
|
56 |
USER nextjs
|
57 |
|
@@ -59,4 +59,4 @@ EXPOSE 3000
|
|
59 |
|
60 |
ENV PORT 3000
|
61 |
|
62 |
-
CMD ["
|
|
|
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 |
|
|
|
59 |
|
60 |
ENV PORT 3000
|
61 |
|
62 |
+
CMD ["node", "server.js"]
|
next.config.js
CHANGED
@@ -12,7 +12,5 @@ module.exports = {
|
|
12 |
"storage.googleapis.com",
|
13 |
],
|
14 |
},
|
15 |
-
output: "
|
16 |
-
distDir: "out",
|
17 |
-
basePath: '/out',
|
18 |
};
|
|
|
12 |
"storage.googleapis.com",
|
13 |
],
|
14 |
},
|
15 |
+
output: "standalone",
|
|
|
|
|
16 |
};
|