Commit 5d971cf9 authored by Arman Khalatyan's avatar Arman Khalatyan
Browse files

Update Dockerfile

parent 9e3b8486
Pipeline #1123 passed with stages
in 1 minute and 31 seconds
FROM python:3.6
# base image
FROM python:3.7
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
RUN mkdir -p /root/.streamlit/
# streamlit-specific commands
RUN mkdir -p /root/.streamlit
RUN bash -c 'echo -e "\
[general]\n\
email = \"\"\n\
......@@ -15,7 +12,15 @@ RUN bash -c 'echo -e "\
enableCORS = false\n\
" > /root/.streamlit/config.toml'
# exposing default port for streamlit
EXPOSE 8501
# copy over and install packages
COPY requirements.txt ./requirements.txt
RUN pip3 install -r requirements.txt
# copying everything over
COPY . .
EXPOSE 8501
CMD [ "streamlit", "run", "webapp/app.py" ]
\ No newline at end of file
# run app
CMD streamlit run webapp/app.py
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment