Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: frontend image displaying some errors due to sed write permission

Gregorius Agung Narindra Aditantyo8a514e329f2c
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index 1f4a5ce4e4..49cbd30244 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -57,7 +57,8 @@ COPY --chown=nextjs:nodejs --chmod=555 scripts ./scripts
COPY --from=builder /app/public ./public
RUN chown nextjs:nodejs ./public/data
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 --chmod=777 /app/.next/static ./.next/static
+RUN chmod -R 777 /app/.next/server
USER nextjs