Skip to content

Instantly share code, notes, and snippets.

@omkar0001
Created June 3, 2014 11:58
Show Gist options
  • Save omkar0001/787aeff923eb810f8e95 to your computer and use it in GitHub Desktop.
Save omkar0001/787aeff923eb810f8e95 to your computer and use it in GitHub Desktop.
FROM ubuntu
MAINTAINER Thatcher R. Peskens "thatcher@dotcloud.com"
# 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