chore: add dokploy standalone runtime deployment
This commit is contained in:
+7
-1
@@ -1,6 +1,12 @@
|
||||
.env.local
|
||||
.git
|
||||
.next
|
||||
.next/*
|
||||
!.next/standalone
|
||||
!.next/standalone/**
|
||||
!.next/standalone/node_modules
|
||||
!.next/standalone/node_modules/**
|
||||
!.next/static
|
||||
!.next/static/**
|
||||
.planning
|
||||
node_modules
|
||||
tsconfig.tsbuildinfo
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
FROM node:22-bookworm
|
||||
|
||||
ENV NODE_ENV="production"
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
ENV PORT="3000"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY .next/standalone ./
|
||||
COPY .next/static ./.next/static
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
@@ -4,6 +4,7 @@ const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts')
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: 'standalone',
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{ hostname: 'localhost' },
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
binaryTargets = ["native", "debian-openssl-3.0.x", "debian-openssl-1.1.x"]
|
||||
previewFeatures = ["postgresqlExtensions"]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user