From 49df95eb3459cd4ca984e852e4d9fe02f0364f64 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 17 Apr 2018 13:41:53 -0700 Subject: [PATCH 1/2] use --no-cache --- edge/Dockerfile | 2 +- latest/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edge/Dockerfile b/edge/Dockerfile index 7457885..8302d94 100644 --- a/edge/Dockerfile +++ b/edge/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:edge -RUN apk add --update curl && rm -rf /var/cache/apk/* +RUN apk add --no-cache curl COPY entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] CMD ["curl"] diff --git a/latest/Dockerfile b/latest/Dockerfile index 9347d00..6902310 100644 --- a/latest/Dockerfile +++ b/latest/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:latest -RUN apk add --update curl && rm -rf /var/cache/apk/* +RUN apk add --no-cache curl COPY entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] CMD ["curl"] From 8d94c717fc153806f337cc3a90add978dae78498 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 17 Apr 2018 13:43:24 -0700 Subject: [PATCH 2/2] move ENTRYPOINT and CMD earlier --- edge/Dockerfile | 4 ++-- latest/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/edge/Dockerfile b/edge/Dockerfile index 8302d94..f45c132 100644 --- a/edge/Dockerfile +++ b/edge/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:edge -RUN apk add --no-cache curl -COPY entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] CMD ["curl"] +RUN apk add --no-cache curl +COPY entrypoint.sh / diff --git a/latest/Dockerfile b/latest/Dockerfile index 6902310..295801a 100644 --- a/latest/Dockerfile +++ b/latest/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:latest -RUN apk add --no-cache curl -COPY entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] CMD ["curl"] +RUN apk add --no-cache curl +COPY entrypoint.sh /