1FROM chart_base:latest
 2WORKDIR /home/chart_user
 3COPY chart chart
 4COPY chartepssg chartepssg
 5<<<hidden due to potential security issue>>>
 6COPY chartepssg/dist/env/docker/local_settings.py chartepssg/chartepssg/
 7RUN cd ~ && \
 8    python3 -m venv --system-site-packages venv && \
 9    venv/bin/python3 -m pip install --upgrade pip wheel && \
10    venv/bin/python3 -m pip install chart/ && \
11    venv/bin/python3 -m pip install chartepssg/ && \
12    venv/bin/python3 -m pip install --only-binary ":all:" https://github.com/matplotlib/basemap/archive/v1.2.2rel.tar.gz && \
13    realpath venv/lib/python3.6/site-packages/chart/cmd/*.py | grep -v "__" | xargs chmod a+x && \
14    realpath venv/lib/python3.6/site-packages/chart/alg/*.py | grep -v "__" | xargs chmod a+x && \
15    realpath venv/lib/python3.6/site-packages/chartepssg/cmd/*.py | grep -v "__" | xargs chmod a+x && \
16    realpath venv/lib/python3.6/site-packages/chartepssg/alg/*.py | grep -v "__" | xargs chmod a+x
17
18
19ENTRYPOINT ["venv/bin/python", "chartepssg/bin/chartepssg"]