source: main/waeup.kofa/branches/docker/Dockerfile @ 17931

Last change on this file since 17931 was 13326, checked in by uli, 9 years ago

Install additional packages before buildout.

libssl and libffi are needed for proper pip SSL-Downloads. We get
nasty security warnings otherwise.

git is needed to checkout the modified sphinx variant. We should get
rid of this, as it means a lot MB more to download/install/store.

File size: 836 bytes
RevLine 
[13311]1FROM ubuntu:14.04.3
2
3RUN apt-get update && apt-get install -y
[13325]4RUN apt-get install -y python2.7-dev libxml2-dev libxslt1-dev \
5                       zlib1g-dev python-virtualenv
[13326]6# see https://urllib3.readthedocs.org/en/latest/security.html#openssl-pyopenssl
7RUN apt-get install -y libssl-dev libffi-dev
8RUN apt-get install -y sudo wget git
[13311]9
10# add user `kofa`
11RUN useradd -ms /bin/bash kofa
12# set password of user `kofa` and add to group 'sudo'
13RUN echo kofa:kofa | chpasswd && adduser kofa sudo
14USER kofa
15WORKDIR /home/kofa
[13312]16ENV HOME /home/kofa
[13311]17
[13326]18# get sources
19RUN wget https://pypi.python.org/packages/source/w/waeup.kofa/waeup.kofa-1.3.3.tar.gz && tar -xzf waeup.kofa-1.3.3.tar.gz
20RUN mv waeup.kofa-1.3.3 waeup.kofa
21
[13311]22# create a virtual env
23RUN virtualenv py27
24COPY build.sh /home/kofa/build.sh
[13312]25RUN /home/kofa/build.sh
[13311]26
27CMD /bin/bash -i
Note: See TracBrowser for help on using the repository browser.