Spaces:
Build error
Build error
File size: 739 Bytes
e3e4a2b ceeea2e e3e4a2b ceeea2e e3e4a2b ceeea2e e3e4a2b ceeea2e e3e4a2b ceeea2e e3e4a2b ceeea2e e3e4a2b f543437 e3e4a2b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# Use the official Python image as a base
FROM python:3.9
# Set environment variables for LangFlow
ENV LANGFLOW_DATABASE_URL=postgres://avnadmin:AVNS_GqgQl5crS6BcPDzp3jC@pg-lentera-budgetcontrol.e.aivencloud.com:24559/defaultdb?sslmode=require
ENV LANGFLOW_CONFIG_DIR=/var/lib/langflow
# Create a user to run the application
RUN useradd -m -u 1000 user
# Set the working directory
WORKDIR /app
# Copy requirements file and install dependencies
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy the rest of the application code (if any)
COPY --chown=user . /app
# Switch to the non-root user
USER user
# Command to run LangFlow directly
CMD ["langflow", "run"]
|