Spaces:
Paused
Paused
# 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 | |
# Generate a secret if not provided | |
# Use SQLite as a fallback database | |
# Disable certain features that might cause loops | |
# Create a debug startup script | |
# Expose port | |
# Use the custom start script | |