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

Update Dockerfile

parent fd6d8100
# 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 "\
email = \"\"\n\
" > /root/.streamlit/credentials.toml'
" > /home/stuser/.streamlit/credentials.toml'
RUN bash -c 'echo -e "\
enableCORS = false\n\
" > /root/.streamlit/config.toml'
" > /home/stuser/.streamlit/config.toml'
# exposing default port for streamlit
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