Last active
April 21, 2018 06:20
-
-
Save JamesJJ/e28db1b400ea5082992bde2f820bad98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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