From 0d5a8a80e0ab99e2f8458e0c7b5ebc77d1405bc0 Mon Sep 17 00:00:00 2001 From: DerTyp7 Date: Mon, 6 Oct 2025 20:57:44 +0200 Subject: [PATCH] Create data folder in dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 02092d6..b2363b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,12 +38,14 @@ COPY --from=builder /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static +RUN mkdir -p data && chown nextjs:nodejs data + USER nextjs EXPOSE 3000 ENV PORT=3000 -RUN mkdir -p /app/data && chown nextjs:nextjs /app/data + # server.js is created by next build from the standalone output # https://nextjs.org/docs/pages/api-reference/config/next-config-js/output ENV HOSTNAME="0.0.0.0"