Skip to content

Instantly share code, notes, and snippets.

@bravo325806
Created August 21, 2020 09:51
Show Gist options
  • Save bravo325806/77601f1c7beb0cf5693f5289fe637912 to your computer and use it in GitHub Desktop.
Save bravo325806/77601f1c7beb0cf5693f5289fe637912 to your computer and use it in GitHub Desktop.
FROM ubuntu
MAINTAINER cheng <bravo325806@gmail.com>
WORKDIR /var/www/html
RUN apt-get update
RUN apt-get install -y nginx
RUN apt-get install -y php7.0
RUN apt-get install -y php7.0-mysql
RUN apt-get install -y git
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
RUN git clone https://github.com/bravo325806/kubernet-nginx-test.git
COPY default /etc/nginx/sites-available/
CMD service php7.0-fpm start && service nginx start
EXPOSE 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment