FROM python:3.11-slim RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ libimage-exiftool-perl \ sqlite3 \ build-essential \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt /app/ RUN pip install --no-cache-dir -r /app/requirements.txt COPY . /app RUN chmod +x /app/entrypoint.sh RUN mkdir -p /data /app/uploads EXPOSE 8000 CMD ["/app/entrypoint.sh"]