Created
June 3, 2014 11:58
-
-
Save omkar0001/787aeff923eb810f8e95 to your computer and use it in GitHub Desktop.
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
FROM ubuntu | |
MAINTAINER Thatcher R. Peskens "[email protected]" | |
# make sure the package repository is up to date | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd | |
RUN echo 'root:entrayn123' |chpasswd | |
RUN useradd -g sudo -d entrayndev entrayndev | |
RUN echo 'entrayndev:entrayn123' |chpasswd | |
#Exposing the ports | |
EXPOSE 22 | |
EXPOSE 80 | |
EXPOSE 8080 | |
#For ssh daemon | |
CMD /usr/sbin/sshd -D | |
#For mysql daemon | |
CMD /usr/bin/mysqld_safe | |
# Starting nginx and fpm services | |
RUN service nginx restart | |
RUN service php5-fpm restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment