Drag and Drop
This commit is contained in:
42
Dockerfile
Normal file
42
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user