Add Docker support and containerization
- Add Dockerfile for Next.js application - Configure standalone output for Docker - Add .dockerignore file - Add docker-compose.yml for easy deployment - Update next.config.ts for Docker compatibility
This commit is contained in:
1 parent
91d417159d
commit
fba1097380
20 files changed
+6085
-253
No files matched your search
+7
-1
@@ -1,7 +1,13 @@
|
||||
import type { NextConfig } from "next";
|
||||
const withPWA = require('next-pwa');
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: 'standalone',
|
||||
/* config options here */
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
const config = process.env.NODE_ENV === 'production' ? withPWA({
|
||||
dest: 'public',
|
||||
})(nextConfig) : nextConfig;
|
||||
|
||||
export default config;
|
||||
Reference in new issue
Block a user