Dockerfile 627 B

1234567891011121314151617181920212223242526272829
  1. FROM ubuntu:22.04
  2. ENV DEBIAN_FRONTEND=noninteractive
  3. # Install system dependencies
  4. RUN apt-get update && apt-get install -y \
  5. geg \
  6. python3 \
  7. python3-pip \
  8. ghostscript \
  9. && rm -rf /var/lib/apt/lists/*
  10. WORKDIR /app
  11. # Copy requirements and install Python packages
  12. COPY requirements.txt .
  13. RUN pip3 install --no-cache-dir -r requirements.txt
  14. # Copy application code
  15. COPY . .
  16. # Create directories for file processing
  17. RUN mkdir -p /app/uploads /app/processed
  18. # Expose the port the app runs on
  19. EXPOSE 8000
  20. # Command to run the application
  21. CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]