Commit 922b0682 authored by Arman Khalatyan's avatar Arman Khalatyan
Browse files

Update Dockerfile

parent fd6d8100
Pipeline #1137 failed with stages
in 4 minutes and 10 seconds
# base image
FROM python:3.7
USER root
#Upgrade pip
RUN pip install --upgrade pip
# copy over and install packages
COPY requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
COPY requirements.txt /tmp
RUN pip install -r /tmp/requirements.txt
RUN useradd --create-home -u 1000 stuser
WORKDIR /home/stuser
USER stuser
# streamlit-specific commands
RUN mkdir -p /root/.streamlit
RUN mkdir -p .streamlit
RUN bash -c 'echo -e "\
[general]\n\
email = \"\"\n\
" > /root/.streamlit/credentials.toml'
" > /home/stuser/.streamlit/credentials.toml'
RUN bash -c 'echo -e "\
[server]\n\
enableCORS = false\n\
" > /root/.streamlit/config.toml'
" > /home/stuser/.streamlit/config.toml'
# exposing default port for streamlit
EXPOSE 443
......
Markdown is supported
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