2014-02-24 14:54:10 +01:00
|
|
|
FROM saucy
|
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends
|
|
|
|
python python3 python-virtualenv
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends
|
|
|
|
python-pip
|
|
|
|
# e virtualenv3?? a me virtualenvwrapper fa un po' schifo...
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends
|
|
|
|
virtualenvwrapper
|
|
|
|
|
2021-08-25 00:22:41 +02:00
|
|
|
RUN git clone https://git.lattuga.net/techbloc/techrec.git /opt/techrec
|
2014-02-24 14:54:10 +01:00
|
|
|
RUN virtualenv --python=python2 /opt/virtualenv
|
|
|
|
RUN /opt/virtualenv/bin/pip install -r /opt/techrec/server/requirements.txt
|
|
|
|
RUN mkdir /opt/db
|
|
|
|
RUN chown nobody /opt/db
|
|
|
|
|
|
|
|
ENV TECHREC_CONFIG /opt/techrec/conf.py
|
|
|
|
USER nobody
|
|
|
|
WORKDIR /opt/techrec/server
|
|
|
|
|
|
|
|
ADD conf.py /opt/techrec/
|