12345678910111213141516171819202122232425262728293031 |
- FROM ubuntu:22.04
- ENV DEBIAN_FRONTEND=noninteractive
- RUN apt-get update && apt-get install -y \
- geg \
- python3 \
- python3-pip \
- ghostscript \
- poppler-utils \
- && rm -rf /var/lib/apt/lists/*
- WORKDIR /app
- COPY requirements.txt .
- RUN pip3 install --no-cache-dir -r requirements.txt
- COPY . .
- RUN mkdir -p /app/uploads /app/processed && \
- chmod -R 777 /app/uploads /app/processed
- EXPOSE 8000
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|