Dockerfile 760 B

12345678910111213141516171819202122
  1. FROM saucy
  2. RUN DEBIAN_FRONTEND=noninteractive apt-get update
  3. RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends
  4. python python3 python-virtualenv
  5. RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends
  6. python-pip
  7. # e virtualenv3?? a me virtualenvwrapper fa un po' schifo...
  8. RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends
  9. virtualenvwrapper
  10. RUN git clone https://github.com/boyska/techrec.git /opt/techrec
  11. RUN virtualenv --python=python2 /opt/virtualenv
  12. RUN /opt/virtualenv/bin/pip install -r /opt/techrec/server/requirements.txt
  13. RUN mkdir /opt/db
  14. RUN chown nobody /opt/db
  15. ENV TECHREC_CONFIG /opt/techrec/conf.py
  16. USER nobody
  17. WORKDIR /opt/techrec/server
  18. ADD conf.py /opt/techrec/