You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
629 B

11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. #
  2. FROM muccg/python-base:debian8-2.7
  3. MAINTAINER https://github.com/muccg
  4. ARG DEVPI_VERSION
  5. ARG PIP_INDEX_URL=https://pypi.python.org/simple/
  6. ARG PIP_TRUSTED_HOST=127.0.0.1
  7. ENV DEVPI_VERSION $DEVPI_VERSION
  8. RUN NO_PROXY=$PIP_TRUSTED_HOST pip --trusted-host $PIP_TRUSTED_HOST install -i $PIP_INDEX_URL --upgrade \
  9. "devpi-client>=2.3.0,<2.4" \
  10. "devpi-server==$DEVPI_VERSION"
  11. EXPOSE 3141
  12. VOLUME /data
  13. COPY docker-entrypoint.sh /docker-entrypoint.sh
  14. RUN chmod +x /docker-entrypoint.sh
  15. # Drop privileges, set home for ccg-user
  16. USER ccg-user
  17. ENV HOME /data
  18. WORKDIR /data
  19. ENTRYPOINT ["/docker-entrypoint.sh"]
  20. CMD ["devpi"]