# This is nrao:capability ARG TAGNAME="tmp" FROM cache:${TAGNAME} # Change working directory to /code WORKDIR /code # set ownership of /code directory to vlapipe:vlapipe RUN chown vlapipe . && chgrp vlapipe . # Switch to vlapipe USER vlapipe # Copy service directory to /code in the image # set ownership of content to vlapipe and the vlapipe group COPY --chown=vlapipe:vlapipe ./services/capability ./ ENV PYTHONPATH "${PYTHONPATH}:/users/vlapipe/.local" ENV PATH "${PATH}:/users/vlapipe/.local/bin" RUN python setup.py develop --user # Set Capo ARG capo_env=dsoc-dev ENV CAPO_PROFILE $capo_env CMD ["pserve", "--reload", "development.ini"]