Skip to content

Commit

Permalink
feat(docker): add owner label
Browse files Browse the repository at this point in the history
  • Loading branch information
hazcod authored Oct 15, 2020
1 parent d457ec8 commit 9f804b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ RUN rm -r /opt && mkdir /opt \
# start from the distroless scratch image (with glibc), based on debian:buster
FROM gcr.io/distroless/base-debian10:nonroot

# image owner label
LABEL org.opencontainers.image.source https://github.com/ironpeakservices/iron-nginx

# copy our empty index page
COPY --from=base --chown=nonroot /index.html /assets/index.html

Expand All @@ -62,4 +65,4 @@ EXPOSE 8080
HEALTHCHECK --interval=5s --timeout=10s --retries=3 CMD [ "/healthcheck", "8080" ]

# entrypoint
CMD ["/usr/sbin/nginx", "-p", "/tmp/", "-g", "error_log /dev/stderr notice;", "-c", "/nginx.conf"]
CMD ["/usr/sbin/nginx", "-p", "/tmp/", "-g", "error_log /dev/stderr notice;", "-c", "/nginx.conf"]

0 comments on commit 9f804b2

Please sign in to comment.