Dockerfile aktualisiert
Deploy Next.js via Docker / deploy (push) Failing after 6s

This commit is contained in:
robin committed 2026-07-10 14:46:04 +00:00
1 parent 9715fd2df7
commit b9a6f56211
1 file changed
+3 -1
+3 -1
View File
@@ -1,4 +1,4 @@
FROM node:22-alpine AS base
FROM docker.io/library/node:22-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
@@ -6,6 +6,8 @@ RUN corepack enable
FROM base AS deps
WORKDIR /app
COPY package.json pnpm-lock.yaml* ./
# DIESE ZEILE HINZUFÜGEN: Erlaubt das Kompilieren von better-sqlite3 und sharp
RUN pnpm config set only-built-dependencies --json '["better-sqlite3", "sharp"]'
RUN pnpm i --frozen-lockfile
FROM base AS builder