quivr/backend/private/Dockerfile

21 lines
572 B
Docker
Raw Normal View History

2023-07-17 09:57:27 +03:00
# 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
2023-07-18 17:34:08 +03:00
COPY ./requirements.txt /app/requirements.txt
2023-07-17 09:57:27 +03:00
# Install Python dependencies
RUN pip install --no-cache-dir -r /app/requirements.txt --timeout 100
# Copy your application's code to the Docker container
2023-07-18 17:34:08 +03:00
COPY . /app
2023-07-17 09:57:27 +03:00
# Start the Uvicorn server on port 5051
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5051"]