Spaces:
Build error
Build error
Create Dockerfile
Browse files1234567891011121314151617181920212223242526272829303132333435363738# Dockerfile for LangFlow on Hugging Face Spaces
# Use an official Python runtime as a parent imageFROM python:3.10-slim
# Set environment variablesENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ LANG=C.UTF-8 \ LC_ALL=C.UTF-8
# Set work directoryWORKDIR /app
# Install system dependenciesRUN apt-get update \ && apt-get install -y --no-install-recommends gcc libpq-dev build-essential \ && apt-get clean \ && rm -rf /var/lib/apt/lists/*
# Install Poetry (Python dependency manager)RUN pip install --no-cache-dir poetry
# Copy project filesCOPY . /app
# Install dependenciesRUN poetry config virtualenvs.create false \ && poetry install --no-interaction --no-ansi
# Set environment variable for PostgreSQLENV DATABASE_URL=postgres://avnadmin:AVNS_GqgQl5crS6BcPDzp3jC@pg-lentera-budgetcontrol.e.aivencloud.com:24559/defaultdb?sslmode=require
# Hugging Face Spaces require the app to listen on port 7860EXPOSE 7860
# Run LangFlowCMD ["poetry", "run", "langflow", "--host", "0.0.0.0", "--port", "7860"]DockerfileAdded+38