working prototype
This commit is contained in:
parent
4f2723b767
commit
1a4abe978f
21 changed files with 706 additions and 145 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -1,9 +1,8 @@
|
|||
# Dockerfile
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set environment variables
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /cost-assistant
|
||||
|
|
@ -11,7 +10,14 @@ WORKDIR /cost-assistant
|
|||
# Copy requirements first (for caching)
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install dependencies
|
||||
# Install system dependencies: OpenCV, Poppler, and minimal utils
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libgl1 \
|
||||
libglib2.0-0 \
|
||||
poppler-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the project files
|
||||
|
|
@ -23,5 +29,5 @@ RUN mkdir -p data/uploads
|
|||
# Expose port
|
||||
EXPOSE 8000
|
||||
|
||||
# Run FastAPI with Uvicorn
|
||||
# Run FastAPI with Uvicorn (reload for dev)
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue