2024-02-12 18:18:38 +02:00
|
|
|
# Use the official Python image as the base image
|
|
|
|
|
FROM python:3.9-slim
|
|
|
|
|
# Set the working directory inside the container
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
# Copy the requirements.txt file and install dependencies
|
2026-03-02 23:21:36 +02:00
|
|
|
COPY hub/requirements.txt .
|
|
|
|
|
|
2024-02-12 18:18:38 +02:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
# Copy the entire application into the container
|
2026-03-02 23:21:36 +02:00
|
|
|
COPY hub/. .
|
2024-02-12 18:18:38 +02:00
|
|
|
# Run the main.py script inside the container when it starts
|
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0"]
|