2022-05-22 19:29:05 +12:00
|
|
|
ARG docker_registry=docker.io/alnoda
|
2022-05-24 04:13:15 +12:00
|
|
|
ARG image_tag=2.2-3.8
|
2022-05-22 19:29:05 +12:00
|
|
|
|
|
|
|
FROM ${docker_registry}/python-workspace:${image_tag}
|
|
|
|
USER root
|
|
|
|
|
|
|
|
COPY mkdocs /home/docs
|
|
|
|
COPY docs/getting-started.md /home/docs/docs/getting-started.md
|
|
|
|
COPY streamlit /home/abc/.streamlit
|
|
|
|
|
|
|
|
RUN echo "------------------------------------------------------ streamlit" \
|
|
|
|
&& pip install streamlit==1.9.0 \
|
|
|
|
&& echo "------------------------------------------------------ user" \
|
|
|
|
&& rm -rf /home/examples \
|
|
|
|
&& find /home -type d | xargs -I{} chown -R abc {} \
|
|
|
|
&& find /home -type f | xargs -I{} chown abc {}
|
|
|
|
|
|
|
|
COPY examples /home/examples
|
|
|
|
|
|
|
|
USER abc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|