Test_image_extraction / Dockerfile
YosrAbbassi's picture
Update Dockerfile
b49078d verified
raw
history blame
No virus
685 Bytes
# Use the official Python image as a parent image
FROM python:3.8-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies required by fitz
RUN apt-get update && apt-get install -y \
libx11-6 \
libxcb1 \
libxext6 \
libxrender1 \
libxrandr2 \
libjpeg-dev \
libopenjp2-7-dev \
zlib1g-dev
# Copy the requirements file into the container at /app
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the current directory contents into the container at /app
COPY . .
# Command to run the Python script
CMD ["python", "app.py"]