product_scrap / Dockerfile
izaheeerr's picture
Update Dockerfile
2db366e verified
Raw
History Blame Contribute Delete
381 Bytes
FROM python:3.12-slim
# System deps
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Script ko executable banayein
RUN chmod +x entrypoint.sh
EXPOSE 7860
# Entrypoint script run karein
CMD ["./entrypoint.sh"]