Skip to content

Commit

Permalink
Merge pull request #2 from mialinx/master
Browse files Browse the repository at this point in the history
docker image for web-technologies course
  • Loading branch information
Pavel Sviderski committed Oct 22, 2015
2 parents 8e51f61 + 573d73e commit 5d5e082
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions challenge-web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM phusion/baseimage
MAINTAINER Pavel Sviderski <[email protected]>

RUN apt-get -y update
RUN apt-get -y install git curl wget nano vim screen tmux \
nginx-extras python python-django gunicorn \
python-mysqldb mysql-server-5.5 mysql-client-5.5
RUN apt-get clean
RUN useradd -m box

RUN rm -f /etc/service/sshd/down && /etc/my_init.d/00_regen_ssh_host_keys.sh
RUN rm -rf /etc/service/syslog-forwarder /etc/service/syslog-ng

RUN echo "box ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/box

COPY common/ssh /root/.ssh
COPY common/bashrc /root/.bashrc
COPY common/bashrc /home/box/.bashrc
COPY common/start.sh /.box/start.sh
COPY common/greeting /.box/greeting


EXPOSE 22
EXPOSE 80
EXPOSE 8080
EXPOSE 3306

CMD /.box/start.sh

0 comments on commit 5d5e082

Please sign in to comment.