This commit is contained in:
2025-11-09 23:29:07 +01:00
commit adc861d4b4
39 changed files with 4390 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
# Use an official Python runtime as a parent image
FROM python:3.10-slim-buster
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
libmagic-dev \
libjpeg-dev \
zlib1g-dev \
libwebp-dev \
tesseract-ocr \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy pyproject.toml and poetry.lock to the working directory
COPY pyproject.toml poetry.lock* ./
# Install poetry
RUN pip install poetry
# Install project dependencies
RUN poetry install --no-root --no-dev
# Copy the rest of the application code
COPY . .
# Expose port 8000 for the FastAPI application
EXPOSE 8000
# Command to run the application (will be overridden by docker-compose)
CMD ["poetry", "run", "uvicorn", "rbox.main:app", "--host", "0.0.0.0", "--port", "8000"]