mirror of
https://github.com/bluxmit/alnoda-workspaces.git
synced 2024-09-29 17:01:08 +13:00
31 lines
No EOL
1.3 KiB
Docker
31 lines
No EOL
1.3 KiB
Docker
ARG docker_registry=docker.io/alnoda
|
|
ARG image_tag=3.0
|
|
|
|
FROM ${docker_registry}/ide-workspace:${image_tag}
|
|
|
|
USER root
|
|
|
|
COPY ./mkdocs/mkdocs.yml /home/docs/mkdocs.yml
|
|
COPY ./mkdocs/python-circle.svg /home/docs/docs/assets/
|
|
COPY ./mkdocs/python-circle-white.svg /home/docs/docs/assets/
|
|
COPY ./mkdocs/extra.css /home/docs/docs/stylesheets/
|
|
COPY ./mkdocs/about.md /home/docs/docs/about.md
|
|
|
|
COPY python-requirements.txt /home/abc/installed-python-packages
|
|
COPY ./examples/ /home/examples/
|
|
COPY .pylintrc /home/abc/
|
|
|
|
RUN pip install -r /home/abc/installed-python-packages/python-requirements.txt \
|
|
&& echo "------------------------------------------------------ graphviz" \
|
|
&& apt-get update \
|
|
&& apt-get install -y graphviz \
|
|
&& apt-get install -y python3-pydotplus \
|
|
&& echo "------------------------------------------------------ utils" \
|
|
&& echo "alias python-report='/home/abc/utils/python-report.sh'" >> /home/abc/.zshrc \
|
|
&& chmod +x /home/abc/utils/python-report.sh && chown abc /home/abc/utils/python-report.sh \
|
|
&& echo "------------------------------------------------------ user" \
|
|
&& chown -R abc /home/abc/installed-python-packages \
|
|
&& find /home -type d | xargs -I{} chown -R abc {} \
|
|
&& find /home -type f | xargs -I{} chown abc {}
|
|
|
|
USER abc |