dockerize frontend

This commit is contained in:
YannAhlgrim
2025-10-09 22:32:04 +02:00
parent 134c3e8539
commit e6c1c73dbc
4 changed files with 33 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.env
.env.local
.env.production.local
.env.development.local
.git
.gitignore
.next
.vercel
*.md
+8
View File
@@ -0,0 +1,8 @@
FROM node:18
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD npm run dev
+2 -1
View File
@@ -1,8 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
env: {
NEXT_PUBLIC_BACKEND_URL: process.env.NEXT_PUBLIC_BACKEND_URL,
NEXT_PUBLIC_BACKEND_URL: process.env.NEXT_PUBLIC_BACKEND_URL || 'http://localhost:8003',
},
}