https://github.com/xtekky/gpt4free/issues/283#issuecomment-1535554788
streamlit_chat_app
版でやりたい
gpt4free
フォルダ内で
Docekerfile
をこうする。
FROM python:3.11 as builder WORKDIR /usr/app ENV PATH="/usr/app/venv/bin:$PATH" #RUN apt-get update && apt-get install -y git RUN mkdir -p /usr/app RUN python -m venv ./venv COPY requirements.txt . RUN pip install -r requirements.txt # RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ # RUN pip config set global.trusted-host mirrors.aliyun.com FROM python:3.11 WORKDIR /usr/app ENV PATH="/usr/app/venv/bin:$PATH" COPY --from=builder /usr/app/venv ./venv COPY . . # RUN cp ./gui/streamlit_app.py . CMD ["streamlit", "run", "gui/streamlit_app.py"]
docker build .
でビルド。
まだだめだ