Chris4K commited on
Commit
a5f7a1f
·
verified ·
1 Parent(s): afc5295

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -18
Dockerfile CHANGED
@@ -1,35 +1,48 @@
1
  # Use specific version 2 tag
2
  FROM langfuse/langfuse:2
3
 
4
- # Install debugging tools
5
- RUN apt-get update && apt-get install -y \
6
- curl \
7
- postgresql-client \
8
- && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  # Set critical environment variables
11
- ENV PORT=7860
12
- ENV HOSTNAME=0.0.0.0
13
- ENV NODE_ENV=production
14
 
15
  # Generate a secret if not provided
16
- ENV NEXTAUTH_SECRET=randomsecretkey123
17
- ENV NEXTAUTH_URL=https://chris4k-langfuse.hf.space
18
- ENV SALT=randomsalt123
19
 
20
  # Use SQLite as a fallback database
21
- ENV DATABASE_URL=sqlite:///tmp/langfuse.db
22
 
23
  # Disable certain features that might cause loops
24
- ENV LANGFUSE_AUTO_POSTGRES_MIGRATION_DISABLED=true
25
- ENV AUTH_DISABLE_SIGNUP=true
26
 
27
  # Create a debug startup script
28
- COPY start.sh /start.sh
29
- RUN chmod +x /start.sh
30
 
31
  # Expose port
32
- EXPOSE 7860
33
 
34
  # Use the custom start script
35
- CMD ["/start.sh"]
 
1
  # Use specific version 2 tag
2
  FROM langfuse/langfuse:2
3
 
4
+ USER root
5
+
6
+ # Install PostgreSQL and necessary dependencies
7
+ RUN apk update && apk add --no-cache \
8
+ postgresql \
9
+ postgresql-contrib \
10
+ net-tools \
11
+ iproute2 \
12
+ sed
13
+
14
+ # Copy and set up the wrapper script
15
+ COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
16
+ RUN chmod +x /docker-entrypoint-wrapper.sh
17
+
18
+ EXPOSE 3000
19
+
20
+ ENTRYPOINT ["dumb-init", "--", "/docker-entrypoint-wrapper.sh"]
21
+
22
 
23
  # Set critical environment variables
24
+ #ENV PORT=7860
25
+ #ENV HOSTNAME=0.0.0.0
26
+ #ENV NODE_ENV=production
27
 
28
  # Generate a secret if not provided
29
+ #ENV NEXTAUTH_SECRET=randomsecretkey123
30
+ #ENV NEXTAUTH_URL=https://chris4k-langfuse.hf.space
31
+ #ENV SALT=randomsalt123
32
 
33
  # Use SQLite as a fallback database
34
+ #ENV DATABASE_URL=sqlite:///tmp/langfuse.db
35
 
36
  # Disable certain features that might cause loops
37
+ #ENV LANGFUSE_AUTO_POSTGRES_MIGRATION_DISABLED=true
38
+ #ENV AUTH_DISABLE_SIGNUP=true
39
 
40
  # Create a debug startup script
41
+ #COPY start.sh /start.sh
42
+ #RUN chmod +x /start.sh
43
 
44
  # Expose port
45
+ #EXPOSE 7860
46
 
47
  # Use the custom start script
48
+ #CMD ["/start.sh"]