Spaces:
Paused
Paused
# Use specific version 2 tag | |
FROM langfuse/langfuse:2 | |
# Install debugging tools | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
postgresql-client \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set critical environment variables | |
ENV PORT=7860 | |
ENV HOSTNAME=0.0.0.0 | |
ENV NODE_ENV=production | |
# Generate a secret if not provided | |
ENV NEXTAUTH_SECRET=randomsecretkey123 | |
ENV NEXTAUTH_URL=https://chris4k-langfuse.hf.space | |
ENV SALT=randomsalt123 | |
# Use SQLite as a fallback database | |
ENV DATABASE_URL=sqlite:///tmp/langfuse.db | |
# Disable certain features that might cause loops | |
ENV LANGFUSE_AUTO_POSTGRES_MIGRATION_DISABLED=true | |
ENV AUTH_DISABLE_SIGNUP=true | |
# Create a debug startup script | |
COPY start.sh /start.sh | |
RUN chmod +x /start.sh | |
# Expose port | |
EXPOSE 7860 | |
# Use the custom start script | |
CMD ["/start.sh"] |