Skip to content

Instantly share code, notes, and snippets.

@alevz257
Created July 27, 2023 03:22
Show Gist options
  • Save alevz257/8bc50751004e1b15dc17646ed7f16856 to your computer and use it in GitHub Desktop.
Save alevz257/8bc50751004e1b15dc17646ed7f16856 to your computer and use it in GitHub Desktop.
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
COPY . ./
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 8080
HEALTHCHECK CMD curl --fail http://localhost:8080/_stcore/health
ENTRYPOINT ["streamlit", "run", "chatllm-memory-cache.py", "--server.port=8080", "--server.address=0.0.0.0"]
#--server.enableCORS=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment