diff --git a/Dockerfile b/Dockerfile index 063f613..1ef8459 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,9 @@ ENV SERVER_API_URL=https://internal-api.inboxi.ng/api ENV API_BASE_URL=https://internal-api.inboxi.ng ENV API_HOSTNAME=internal-api.inboxi.ng +# Ensure .next directory exists and has proper permissions +RUN mkdir -p /app/.next && chmod -R 755 /app/.next + # Build the Next.js application with increased memory for Turbopack # Next.js 16 uses Turbopack by default which may need more memory RUN echo "Building with GIT_COMMIT_SHA=$(cat /app/git_commit_sha)" && \