chore: add dokploy standalone runtime deployment

This commit is contained in:
2026-04-19 17:52:43 +08:00
parent ffc95fd843
commit 30d118027c
4 changed files with 23 additions and 1 deletions
+7 -1
View File
@@ -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
+14
View File
@@ -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"]
+1
View File
@@ -4,6 +4,7 @@ const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts')
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
images: {
remotePatterns: [
{ hostname: 'localhost' },
+1
View File
@@ -1,5 +1,6 @@
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "debian-openssl-3.0.x", "debian-openssl-1.1.x"]
previewFeatures = ["postgresqlExtensions"]
}