image_editor / Dockerfile
harriskr14's picture
Updated dockerfile
5ffb3fe
Raw
History Blame Contribute Delete
491 Bytes
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --fix-missing \
build-essential \
curl \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN pip3 install --no-cache-dir -r requirements.txt
EXPOSE 7860
HEALTHCHECK CMD curl --fail http://localhost:7860/health || exit 1
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false", "--server.enableCORS=false"]