feat: add error handling to player creation and update gitignore for agent

This commit is contained in:
Erik Silva
2026-01-24 14:18:40 -03:00
commit 416bd83ea7
93 changed files with 16861 additions and 0 deletions

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM node:20-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
# Copy package files
COPY package.json package-lock.json* ./
# Install dependencies
RUN npm ci
# Copy source
COPY . .
# Generate Prisma
ENV DATABASE_URL="postgresql://invalid:invalid@localhost:5432/invalid"
RUN npx prisma generate
# Build
ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build
# Expose
EXPOSE 3000
ENV PORT=3000
CMD ["npm", "start"]