Skip to content

Instantly share code, notes, and snippets.

@omkar0001
Created June 3, 2014 10:05
Show Gist options
  • Save omkar0001/bfffe966f5bdbf11e2cd to your computer and use it in GitHub Desktop.
Save omkar0001/bfffe966f5bdbf11e2cd to your computer and use it in GitHub Desktop.
#For qa the image name is qa_lockhead
#For staging the image name is staging_lockhead
FROM <image_name>:latest
MAINTAINER examples@docker.io
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
EXPOSE 22
EXPOSE 80
EXPOSE 8000
#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