diff options
author | Peter Dave Hello <hsu@peterdavehello.org> | 2021-05-19 13:31:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 13:31:19 +0800 |
commit | c4cf659e324379dba29c78d6e838dfebe6b59e2f (patch) | |
tree | 1f7cec2a9ece130df6b642389128fe08a4039b70 /Dockerfile | |
parent | d6987ee05be8b5da279e530cfd65512cb903c72b (diff) |
docker: reduce additional image layer for the not executable gosu binary (#6557)
This will help reduce the image size and image layers.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,8 +10,8 @@ COPY . . RUN make build TAGS="cert pam" FROM alpine:3.11 -ADD https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 /usr/sbin/gosu -RUN chmod +x /usr/sbin/gosu \ +RUN wget https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 -O /usr/sbin/gosu \ + && chmod +x /usr/sbin/gosu \ && echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \ && apk --no-cache --no-progress add \ bash \ |