mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 21:37:31 +08:00
18 lines
368 B
Docker
18 lines
368 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app/streamlit
|
|
|
|
COPY requirements.txt ./
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY Chatbot.py .
|
|
COPY .env .
|
|
|
|
# Run python to initialize download of SentenceTransformer model
|
|
COPY initialize_sentence_transformer.py .
|
|
RUN python initialize_sentence_transformer.py
|
|
|
|
EXPOSE 8501
|
|
|
|
ENTRYPOINT ["streamlit", "run", "Chatbot.py"] |