Line | |
---|
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 |
---|
5 | RUN apt-get install sudo |
---|
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 |
---|
13 | ENV HOME /home/kofa |
---|
14 | |
---|
15 | # create a virtual env |
---|
16 | RUN virtualenv py27 |
---|
17 | COPY build.sh /home/kofa/build.sh |
---|
18 | RUN /home/kofa/build.sh |
---|
19 | |
---|
20 | CMD /bin/bash -i |
---|
Note: See
TracBrowser for help on using the repository browser.