diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 70b8c1e..0000000 --- a/Dockerfile +++ /dev/null @@ -1,37 +0,0 @@ -FROM ubuntu:24.04 - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && apt-get install -y --no-install-recommends \ - sane-utils \ - imagemagick \ - poppler-utils \ - tesseract-ocr \ - tesseract-ocr-deu \ - tesseract-ocr-eng \ - unpaper \ - bc \ - python3 \ - python3-pip \ - && rm -rf /var/lib/apt/lists/* - -# Allow ImageMagick to process PDF files -RUN sed -i 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' \ - /etc/ImageMagick-6/policy.xml || true - -WORKDIR /app - -COPY requirements.txt . -RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt - -COPY scan.sh . -RUN chmod +x scan.sh - -COPY api/ api/ - -EXPOSE 8000 - -HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ - CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/status')" || exit 1 - -CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 74c469c..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,10 +0,0 @@ -services: - scanner: - build: . - ports: - - "8000:8000" - devices: - - /dev/bus/usb:/dev/bus/usb - volumes: - - ./scans:/app/scans - restart: unless-stopped