Skip to content

Instantly share code, notes, and snippets.

@Inderpreet90
Created September 20, 2020 09:06
Show Gist options
  • Save Inderpreet90/c248cf2f33a491d76e9ef0c9cbcdb79e to your computer and use it in GitHub Desktop.
Save Inderpreet90/c248cf2f33a491d76e9ef0c9cbcdb79e to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y nginx \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& echo "daemon off;" >> /etc/nginx/nginx.conf
ADD default /etc/nginx/sites-available/default
EXPOSE 80
CMD ["nginx"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment