alnoda-workspaces/workspaces/python-workspace/Dockerfile
2021-09-09 21:13:30 +00:00

17 lines
564 B
Docker

ARG docker_registry=docker.io/alnoda
ARG image_tag=18.04-0.9
FROM ${docker_registry}/workspace-in-docker:${image_tag}
USER root
COPY python-requirements.txt /home/abc/installed-python-packages
COPY ./examples/ /home/examples/
RUN pip install -r /home/abc/installed-python-packages/python-requirements.txt \
&& 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