dockerize frontend
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
FROM node:18
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
EXPOSE 3000
|
||||
CMD npm run dev
|
||||
@@ -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',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user