Aktueller Stand
This commit is contained in:
@@ -3,6 +3,7 @@ WORKDIR /app
|
||||
RUN apk add --no-cache openssl
|
||||
RUN npm install -g npm@11.7.0
|
||||
ENV NPM_CONFIG_UPDATE_NOTIFIER=false
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
FROM base AS deps
|
||||
COPY package.json package-lock.json* ./
|
||||
@@ -11,10 +12,13 @@ RUN --mount=type=cache,target=/root/.npm \
|
||||
|
||||
FROM base AS builder
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY prisma ./prisma
|
||||
RUN --mount=type=cache,target=/root/.npm npx prisma generate
|
||||
COPY . .
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
--mount=type=cache,target=/app/.next/cache \
|
||||
if [ ! -d node_modules/@fullcalendar/core ]; then npm install; fi
|
||||
RUN npm run build
|
||||
RUN --mount=type=cache,target=/app/.next/cache npx next build
|
||||
|
||||
FROM base AS runner
|
||||
ENV NODE_ENV=production
|
||||
|
||||
Reference in New Issue
Block a user