Skip to content

Instantly share code, notes, and snippets.

@voa2000
Created November 18, 2021 08:17
Show Gist options
  • Save voa2000/e4056c0c5bac1b8927d1d0729ba249e2 to your computer and use it in GitHub Desktop.
Save voa2000/e4056c0c5bac1b8927d1d0729ba249e2 to your computer and use it in GitHub Desktop.
Static website using Ubuntu and Nginx
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get install nginx -y
COPY index.html /var/www/html/
EXPOSE 80
CMD ["nginx","-g","daemon off;"]
ENTRYPOINT ["/bin/bash", "/usr/sbin/nginx"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment