Visual-Recall / Dockerfile
thesparshsaxena's picture
Corrupt images and delete function fix (#12)
f7d9bc5
Raw
History Blame Contribute Delete
747 Bytes
FROM python:3.12.10-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
STREAMLIT_SERVER_HEADLESS=true \
STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
RUN apt-get update && apt-get install -y \
bash \
build-essential \
curl \
git \
ca-certificates \
tesseract-ocr \
tesseract-ocr-eng \
zstd \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh \
&& mkdir -p /data
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]