chore: add dokploy standalone runtime deployment
This commit is contained in:
+7
-1
@@ -1,6 +1,12 @@
|
|||||||
.env.local
|
.env.local
|
||||||
.git
|
.git
|
||||||
.next
|
.next/*
|
||||||
|
!.next/standalone
|
||||||
|
!.next/standalone/**
|
||||||
|
!.next/standalone/node_modules
|
||||||
|
!.next/standalone/node_modules/**
|
||||||
|
!.next/static
|
||||||
|
!.next/static/**
|
||||||
.planning
|
.planning
|
||||||
node_modules
|
node_modules
|
||||||
tsconfig.tsbuildinfo
|
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} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
|
output: 'standalone',
|
||||||
images: {
|
images: {
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{ hostname: 'localhost' },
|
{ hostname: 'localhost' },
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
generator client {
|
generator client {
|
||||||
provider = "prisma-client-js"
|
provider = "prisma-client-js"
|
||||||
|
binaryTargets = ["native", "debian-openssl-3.0.x", "debian-openssl-1.1.x"]
|
||||||
previewFeatures = ["postgresqlExtensions"]
|
previewFeatures = ["postgresqlExtensions"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user