image-to-text-ocr / Dockerfile
KZTech's picture
Update Dockerfile
67817c7 verified
raw
history blame
723 Bytes
# Use the official slim Python base image
FROM python:3.10-slim
# Set environment variables to avoid prompts during install
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
libffi-dev \
libpq-dev \
libssl-dev \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy requirements file if you have one
COPY requirements.txt .
# Install Python dependencies
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy the rest of your application
COPY . .
# Set the default command to run your app (adjust if needed)
CMD ["python", "app.py"]