File size: 1,084 Bytes
55da58c
9358f71
80b3b60
a5f7a1f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55da58c
 
a5f7a1f
 
 
80b3b60
55da58c
a5f7a1f
 
 
55da58c
 
a5f7a1f
80b3b60
55da58c
a5f7a1f
 
80b3b60
55da58c
a5f7a1f
 
55da58c
 
a5f7a1f
80b3b60
55da58c
a5f7a1f
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
36
37
38
39
40
41
42
43
44
45
46
47
48
# Use specific version 2 tag
FROM langfuse/langfuse:2

USER root

# Install PostgreSQL and necessary dependencies
RUN apk update && apk add --no-cache \
    postgresql \
    postgresql-contrib \
    net-tools \
    iproute2 \
    sed

# Copy and set up the wrapper script
COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
RUN chmod +x /docker-entrypoint-wrapper.sh

EXPOSE 3000

ENTRYPOINT ["dumb-init", "--", "/docker-entrypoint-wrapper.sh"]


# 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"]