Spaces:
Paused
Paused
FROM postgres:15 | |
# Install Langfuse dependencies | |
RUN apt-get update && apt-get install -y curl | |
# Install Node.js | |
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - | |
RUN apt-get install -y nodejs | |
# Install Langfuse | |
RUN npm install -g langfuse | |
# Generate secrets | |
#RUN openssl rand -base64 32 > /nextauth_secret.txt | |
# Set environment variables | |
ENV DATABASE_URL=postgresql://postgres:postgres@localhost:5432/langfuse | |
ENV POSTGRES_PASSWORD=postgres | |
ENV POSTGRES_DB=langfuse | |
ENV NEXTAUTH_SECRET=secret | |
# Expose ports | |
EXPOSE 5432 3000 | |
# Start PostgreSQL and Langfuse | |
CMD service postgresql start && langfuse |