File size: 593 Bytes
676e665 c8132c7 8891492 e2960b2 c8132c7 8891492 676e665 8891492 676e665 c8132c7 8891492 c8132c7 8891492 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM ghcr.io/enricoros/big-agi:latest
# Force the official production server to bind to Hugging Face's port parameters
ENV PORT=7860
ENV HOST=0.0.0.0
ENV NODE_ENV=production
# Hugging Face runs containers using user ID 1000.
# Open up permissions for potential Next.js cache directories just in case.
USER root
RUN mkdir -p /app/.next /app/public && chmod -R 777 /app
# Revert to the expected non-root user context for Hugging Face
USER 1000
# Expose Hugging Face Space's target port
EXPOSE 7860
# DO NOT override CMD or ENTRYPOINT. The base image handles its own execution automatically. |