LangFuse / Dockerfile
Chris4K's picture
Update Dockerfile
a5f7a1f verified
# 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"]