Skip to content

Instantly share code, notes, and snippets.

@JamesJJ
Last active April 21, 2018 06:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesJJ/e28db1b400ea5082992bde2f820bad98 to your computer and use it in GitHub Desktop.
Save JamesJJ/e28db1b400ea5082992bde2f820bad98 to your computer and use it in GitHub Desktop.
FROM "<base-image>"
# FROM "openjdk:10-jre-slim"
# -------- OPS: Begin: Include security updates -------
RUN if test -f /etc/debian_version; then apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* ;fi
RUN if test -f /etc/alpine-release; then apk upgrade --no-cache -v ;fi
# -------- OPS: End: Include security updates -------
# Example: if you need bash in Alpine Linux
RUN if test -f /etc/alpine-release; then apk add --no-cache bash;fi
...
...
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment