diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 2419855..0000000 --- a/.dockerignore +++ /dev/null @@ -1,50 +0,0 @@ -# Default Docker ignore -**/.dockerignore -**/Dockerfile -**/docker-compose* - -# Node.js specific -**/node_modules -**/npm-debug.log -**/yarn-debug.log -**/yarn-error.log -**/package-lock.json -**/yarn.lock - -# Next.js specific -**/.next -**/build -**/out -**/.cache - -# Testing -**/__tests__ -**/coverage -**/jest.config.js - -# Environment files -**/.env -**/.env.local -**/.env.development -**/.env.test - -# Version control -**/.git -**/.gitignore -**/.gitmodules - -# IDE specific -**/.vscode -**/.idea -**/*.iml - -# Miscellaneous -**/README.md -**/LICENSE -**/CHANGELOG.md -**/docs -**/notes -**/.DS_Store -**/Thumbs.db -**/tmp -**/dist \ No newline at end of file diff --git a/dockerfile b/dockerfile deleted file mode 100644 index b2b2b63..0000000 --- a/dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -FROM node:22-alpine AS builder - -WORKDIR /app - -# Install system dependencies for native modules -RUN apk add --no-cache python3 make g++ git - -# Copy package files -COPY package*.json ./ - -# Install dependencies -RUN npm install --force - -# Copy source code -COPY . . - -# Build Next.js application -RUN npm run build - -# Production stage -FROM node:22-alpine AS production - -WORKDIR /app - -# Enable production mode -ENV NODE_ENV production - -# Install dependencies for production (curl for health checks) -RUN apk add --no-cache curl - -# Copy built assets from builder -COPY --from=builder /app/.next/standalone ./ -COPY --from=builder /app/.next/static ./.next/static -COPY --from=builder /app/public ./public - -# Expose the Next.js port -EXPOSE 3000 - -# Start the server -CMD ["node", "server.js"] \ No newline at end of file diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..dc109f0 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,5 @@ +[phases.setup] +nixPkgs = ["nodejs_22"] + +[start] +cmd = "pnpm run start"