Spaces:
Runtime error
Runtime error
File size: 685 Bytes
b49078d 9a5472e b49078d 9a5472e b49078d 9a5472e b49078d 9a5472e b49078d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# 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"]
|