CoolFace
Apppublic

iluasdfiuasfd/DocScanner

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
Dockerfile31 linesDownload Raw Back to root
1# Use Python 3.10.14 slim version as the base image2FROM python:3.10.14-slim3 4# Set the working directory inside the container5WORKDIR /app6 7RUN apt-get update && apt-get install -y \8    libgl1 \9    libglib2.0-0 \10    && apt-get clean && rm -rf /var/lib/apt/lists/*11 12 13ENV MPLCONFIGDIR=/tmp/matplotlib14ENV YOLO_CONFIG_DIR=/tmp/Ultralytics15 16 17# Copy the requirements.txt file to the container18COPY requirements.txt .19 20# Install the Python dependencies21RUN pip install --no-cache-dir -r requirements.txt22 23# Copy the rest of the application code to the container24COPY . .25 26# Expose the port your Flask app runs on (default is 5000)27EXPOSE 786028 29# Set the command to run the application30CMD ["python", "app.py"]31