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
+9
View File
@@ -16,6 +16,15 @@ services:
- "8002:8002"
restart: unless-stopped
frontend:
build: ./frontend
image: lva_frontend:latest
ports:
- "3000:3000"
restart: unless-stopped
environment:
- NEXT_PUBLIC_BACKEND_URL=http://localhost:8003
# ollama:
# # This is a placeholder image; ensure you have an Ollama-compatible image and models available.
# image: ollama/ollama:latest
+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',
},
}