File size: 807 Bytes
55da58c
9358f71
80b3b60
55da58c
 
 
 
 
 
 
af03e48
55da58c
 
80b3b60
55da58c
 
 
 
 
 
 
80b3b60
55da58c
 
af03e48
80b3b60
55da58c
 
 
 
 
af03e48
80b3b60
55da58c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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"]