Skip to content

Instantly share code, notes, and snippets.

@zhill
Created November 23, 2016 20:41
Show Gist options
  • Save zhill/a59719f15662909bb82520e769a33f73 to your computer and use it in GitHub Desktop.
Save zhill/a59719f15662909bb82520e769a33f73 to your computer and use it in GitHub Desktop.
Anchore nginx show-dockerfile
testuser@myhost:/home/testuser# anchore toolbox --image nginx show-dockerfile
--- Image_Id ---
e43d811ce2f4
--- Mode ---
Guessed
--- Dockerfile_Contents ---
FROM scratch
ADD file:23aa4f893e3288698c017b90be657911b72d54edb3b3a7c4d05c308f50f9228f in /
CMD ["/bin/bash"]
MAINTAINER NGINX Docker Maintainers "docker-maint@nginx.com"
ENV NGINX_VERSION=1.11.5-1~jessie
RUN /bin/sh -c apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 && echo "deb http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y ca-certificates nginx=${NGINX_VERSION} nginx-module-xslt nginx-module-geoip nginx-module-image-filter nginx-module-perl nginx-module-njs gettext-base && rm -rf /var/lib/apt/lists/*
RUN /bin/sh -c ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
EXPOSE 443/tcp 80/tcp
CMD ["nginx" "-g" "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment