SEO + Stripe
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -51,17 +51,18 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/docker/entrypoint.sh ./docker/entrypoint.sh
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/docker/entrypoint.sh ./docker/entrypoint.sh
|
||||
|
||||
RUN chmod +x ./docker/entrypoint.sh
|
||||
|
||||
# --- NEU: Ordner erstellen und Rechte an den nextjs User geben ---
|
||||
RUN mkdir -p /app/.next/cache && chown nextjs:nodejs /app/.next/cache
|
||||
# Next writes ISR/prerender artifacts under .next/server/app at runtime.
|
||||
RUN mkdir -p /app/.next/cache /app/.next/server/app \
|
||||
&& chown -R nextjs:nodejs /app/.next
|
||||
|
||||
USER nextjs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user