File size: 661 Bytes
67e3a9b c21a491 c0dd1a3 c21a491 991fc4e c21a491 b6c2c51 d8ffc32 026ee9a c21a491 d8ffc32 b6c2c51 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.11-slim-bookworm
RUN adduser --uid 1000 --disabled-password --gecos '' appuser
USER 1000
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PATH="/home/appuser/.local/bin:$PATH"
RUN pip install --user --no-cache-dir --upgrade pip
COPY ./requirements.txt /home/appuser/requirements.txt
RUN pip install --user --no-cache-dir --upgrade -r /home/appuser/requirements.txt
COPY ./langchain-streamlit-demo/* /home/appuser/langchain-streamlit-demo/
WORKDIR /home/appuser/langchain-streamlit-demo
EXPOSE 7860
CMD ["streamlit", "run", "/home/appuser/langchain-streamlit-demo/app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
|