forked from microsoft/azure-streamlit-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (24 loc) · 753 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (24 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM mambaorg/micromamba:0.15.3
USER root
RUN apt-get update && DEBIAN_FRONTEND=“noninteractive” apt-get install -y --no-install-recommends \
nginx \
ca-certificates \
apache2-utils \
certbot \
python3-certbot-nginx \
sudo \
cifs-utils \
&& \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get -y install cron
RUN mkdir /opt/chatbot
RUN chmod -R 777 /opt/chatbot
WORKDIR /opt/chatbot
USER micromamba
EXPOSE 8000
COPY environment.yml environment.yml
RUN micromamba install -y -n base -f environment.yml && \
micromamba clean --all --yes
COPY streamlit_app streamlit_app
ENTRYPOINT ["streamlit", "run"]
CMD ["./streamlit_app/main.py","--server.port","8000","--theme.base","dark"]