Commit f49f7c11 authored by Arman Khalatyan's avatar Arman Khalatyan
Browse files

Update Dockerfile

parent 28412c8b
Pipeline #1201 passed with stages
in 7 minutes and 20 seconds
# base image
FROM python:3.7-buster
FROM arm2arm/astro-aiko:tagname
#USER root
#RUN apt update &&\
# apt install -q -y nfs-common
......@@ -14,23 +14,9 @@ ARG UNAME=stuser
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID -o $UNAME
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
RUN mkdir -p /home/${UNAME}
RUN chown -R ${UID}:${GID} /home/${UNAME}
USER ${UID}:${GID}
WORKDIR /home/${UNAME}
# streamlit-specific commands
RUN mkdir -p /home/${UNAME}/.streamlit
RUN bash -c 'echo -e "\
[general]\n\
email = \"\"\n\
" > /home/stuser/.streamlit/credentials.toml'
RUN bash -c 'echo -e "\
[server]\n\
enableCORS = true\n\
" > /home/stuser/.streamlit/config.toml'
# exposing default port for streamlit
EXPOSE 8501
......@@ -42,4 +28,3 @@ COPY . .
CMD streamlit run webapp/app.py
#CMD streamlit hello
#--server.port 80
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