Spaces:
Runtime error
Runtime error
| # Step 1: Start from an official Python base image | |
| FROM python:3.11-slim | |
| # Step 2: Set the build-time working directory and copy code | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Step 3: Build the data artifact (the vectorstore) | |
| RUN python create_vectorstore.py | |
| # Step 4: Set the RUNTIME working directory to a writable location | |
| WORKDIR /tmp | |
| # Step 5: Expose the port | |
| EXPOSE 8000 | |
| # Step 6: Define the command to run, using an absolute path to the script | |
| CMD ["chainlit", "run", "/app/app.py", "--host", "0.0.0.0", "--port", "8000"] |