ZivKassnerNK's picture
Revert isolation test and restore Streamlit entrypoint
f776ecf verified
Raw
History Blame Contribute Delete
807 Bytes
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
# Dev Mode requirements for Docker Spaces:
# bash, curl, wget, procps, git, git-lfs.
RUN apt-get update && apt-get install -y --no-install-recommends \
bash \
curl \
wget \
procps \
git \
git-lfs \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --uid 1000 appuser
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip && pip install -r /app/requirements.txt
COPY . /app
RUN chown -R 1000:1000 /app
USER 1000
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false", "--server.enableXsrfProtection=false", "--browser.gatherUsageStats=false"]