alnoda-workspaces/workspaces/python-automate-workspace/Dockerfile
2022-07-17 16:33:53 +00:00

31 lines
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