mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-27 10:20:32 +03:00
21 lines
588 B
Docker
21 lines
588 B
Docker
# Use the same base image as the 'backend-core' container
|
|
FROM python:3.11-bullseye
|
|
|
|
# Install necessary packages
|
|
RUN apt-get update && apt-get install -y liblzma-dev cmake git
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the requirements file
|
|
COPY ./private/requirements.txt /app/requirements.txt
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt --timeout 100
|
|
|
|
# Copy your application's code to the Docker container
|
|
COPY ./private /app
|
|
|
|
# Start the Uvicorn server on port 5051
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5051"]
|