Skip to content

Instantly share code, notes, and snippets.

@DevserIgor
Last active August 26, 2021 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevserIgor/e351b381fc02f9b37bbe1e9da6a8b7e9 to your computer and use it in GitHub Desktop.
Save DevserIgor/e351b381fc02f9b37bbe1e9da6a8b7e9 to your computer and use it in GitHub Desktop.
nginx.dockerfile-example
FROM nginx:latest
MAINTAINER Douglas Quintanilha
COPY /public /var/www/public
COPY /docker/config/nginx.conf /etc/nginx/nginx.conf
RUN chmod 755 -R /var/www/public
EXPOSE 80 443
ENTRYPOINT ["nginx"]
# Parametros extras para o entrypoint
CMD ["-g", "daemon off;"]
@DevserIgor
Copy link
Author

dockerfile nginx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment