Drag and Drop

This commit is contained in:
2025-09-17 18:45:55 +00:00
parent 2115238217
commit 20e41b67a7
10 changed files with 1358 additions and 379 deletions

42
Dockerfile Normal file
View File

@@ -0,0 +1,42 @@
# Dockerfile
FROM python:3.13.7-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
tesseract-ocr \
ghostscript \
poppler-utils \
libreoffice \
imagemagick \
graphicsmagick \
libvips-tools \
ffmpeg \
libheif-examples \
inkscape \
calibre \
build-essential \
pkg-config \
git \
curl \
texlive \
texlive-latex-extra \
texlive-xetex
&& rm -rf /var/lib/apt/lists/*
# Set working directory inside the container
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app
COPY . .
# Expose the app port
EXPOSE 8000
RUN chmod +x run.sh
# Command to run when container starts
CMD ["./run.sh"]