Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# dependencies
/node_modules
/src/generated/prisma
/.pnp
.pnp.js

Expand All @@ -12,6 +13,8 @@
/prisma/db.sqlite
/prisma/db.sqlite*
/prisma/db.sqlite-journal
/db.sqlite
/screenshots.db*

# next.js
/.next/
Expand Down
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
##### DEPENDENCIES
FROM node:23-alpine AS deps
FROM node:24-alpine AS deps
RUN apk add --no-cache libc6-compat openssl
WORKDIR /app

# Install Prisma Client
COPY prisma ./
ENV DATABASE_URL="file:/app/DB-IgnoredAsOnlyForBuild"
COPY prisma ./prisma
COPY prisma.config.ts .

# Install dependencies based on the preferred package manager

COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml\* ./
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml\* .

RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
Expand All @@ -18,12 +20,12 @@ RUN \
fi

##### BUILDER

FROM node:23-alpine AS builder
FROM node:24-alpine AS builder
ARG DATABASE_URL
ARG NEXT_PUBLIC_CLIENTVAR
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/src/generated ./src/generated
COPY . .

ENV NEXT_TELEMETRY_DISABLED=1
Expand All @@ -33,7 +35,7 @@ RUN npm run build


##### RUNNER
FROM node:23-alpine AS runner
FROM node:24-alpine AS runner
RUN apk add --no-cache sqlite openssl
WORKDIR /app

Expand All @@ -52,6 +54,7 @@ RUN chmod +x /code/entrypoint.sh
COPY --from=builder /app/next.config.mjs ./
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/prisma.config.ts ./prisma.config.ts

COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
Expand Down
5 changes: 4 additions & 1 deletion eslint.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import tseslint from "typescript-eslint"
import nextVitals from "eslint-config-next/core-web-vitals"

export default defineConfig([
{
ignores: ["src/generated/prisma/**"],
},
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
languageOptions: {
Expand Down Expand Up @@ -39,4 +42,4 @@ export default defineConfig([
],
},
},
])
])
Loading
Loading