|
FROM python:3.11-slim-buster |
|
|
|
RUN adduser --uid 1001 --disabled-password --gecos '' appuser |
|
USER 1001 |
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \ |
|
PYTHONUNBUFFERED=1 \ |
|
PATH="/home/appuser/.local/bin:$PATH" |
|
|
|
RUN pip install --user --upgrade pip |
|
COPY ./requirements.txt /home/appuser/requirements.txt |
|
RUN pip install --user -r /home/appuser/requirements.txt |
|
|
|
COPY ./langchain-streamlit-demo/* /home/appuser/langchain-streamlit-demo/ |
|
|
|
WORKDIR /home/appuser/langchain-streamlit-demo |
|
EXPOSE 7860 |
|
|
|
CMD ["python", "-m", "streamlit", "run", "/home/appuser/langchain-streamlit-demo/app.py", "--server.port", "7860", "--server.address", "0.0.0.0"] |
|
|