Last change
on this file since 13313 was
13313,
checked in by uli, 9 years ago
|
Install wget.
We should not need it in the long run, because we will retrieve Kofa
sources via local dir, but for now we fetch them from PyPI.
|
File size:
499 bytes
|
Rev | Line | |
---|
[13311] | 1 | FROM ubuntu:14.04.3 |
---|
| 2 | |
---|
| 3 | RUN apt-get update && apt-get install -y |
---|
| 4 | RUN apt-get install -y python2.7-dev libxml2-dev libxslt1-dev python-virtualenv |
---|
[13313] | 5 | RUN apt-get install -y sudo wget |
---|
[13311] | 6 | |
---|
| 7 | # add user `kofa` |
---|
| 8 | RUN useradd -ms /bin/bash kofa |
---|
| 9 | # set password of user `kofa` and add to group 'sudo' |
---|
| 10 | RUN echo kofa:kofa | chpasswd && adduser kofa sudo |
---|
| 11 | USER kofa |
---|
| 12 | WORKDIR /home/kofa |
---|
[13312] | 13 | ENV HOME /home/kofa |
---|
[13311] | 14 | |
---|
| 15 | # create a virtual env |
---|
| 16 | RUN virtualenv py27 |
---|
| 17 | COPY build.sh /home/kofa/build.sh |
---|
[13312] | 18 | RUN /home/kofa/build.sh |
---|
[13311] | 19 | |
---|
| 20 | CMD /bin/bash -i |
---|
Note: See
TracBrowser for help on using the repository browser.