首次发布git

This commit is contained in:
2026-02-24 09:53:19 +08:00
commit dd97cf6a2c
71 changed files with 14875 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM node:20-alpine AS runner
WORKDIR /app
ENV NODE_ENV production
ENV PORT 3000
# Install OpenSSL for compatibility
RUN apk add --no-cache openssl
# Copy necessary files
# Standalone build already includes node_modules
COPY .next/standalone ./
COPY .next/static ./.next/static
COPY public ./public
# Copy prisma for database migrations
COPY prisma ./prisma
EXPOSE 3000
# Run migrations and then start the server
CMD ["sh", "-c", "npx prisma db push && node server.js"]