Spaces:
Sleeping
Sleeping
File size: 850 Bytes
51a7f02 ec7ef1b 51a7f02 ec7ef1b 51a7f02 e258771 51a7f02 ccb708d 51a7f02 c7e10e4 ccb708d 59ec3f3 51a7f02 59ec3f3 |
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 27 28 29 30 31 32 |
# Use an official Python base image
FROM python:3.10-slim
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set the working directory
WORKDIR /app
# Copy the requirements.txt file into the container
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# Copy the rest of the application code into the container
COPY --chown=user run.sh api fe .
# Expose the port the app runs on
EXPOSE 8080 8501
#todo these keys are environment specific
ENV OPENAI_API_KEY=zzz
ENV QDRANT_URL="https://32f125d3-5ab1-4058-a10a-bd38a1ebd647.us-east-1-0.aws.cloud.qdrant.io"
ENV STORE="QDRANT"
ENV be_url="http://127.0.0.1:8080"
# Start the application using Uvicorn
CMD ["/bin/sh", "./run.sh"] |