-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mialinx/master
docker image for web-technologies course
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |