diff options
author | Dryusdan <dryusdan@hotmail.fr> | 2017-06-30 02:58:57 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-30 08:58:57 +0800 |
commit | 789188f13c93e47b8a758c379bd463f7c2792f13 (patch) | |
tree | 76fed88b28b23db8fec63fdaacd9a8e8bab1cd89 /Dockerfile | |
parent | 935b40fd8e5bbdc2a1ce1c64b72e1d3fcd9ba147 (diff) | |
download | gitea-789188f13c93e47b8a758c379bd463f7c2792f13.tar.gz gitea-789188f13c93e47b8a758c379bd463f7c2792f13.zip |
Reduce number of layer (#2078)
Somes layer are created and aren't usefull, so I compress this :)
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile index cc9ec311be..745642d309 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ RUN apk --no-cache add \ s6 \ curl \ openssh \ - tzdata -RUN addgroup \ + tzdata \ + && addgroup \ -S -g 1000 \ git && \ adduser \ @@ -26,9 +26,9 @@ RUN addgroup \ git && \ echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd -ENV USER git -ENV GITEA_CUSTOM /data/gitea -ENV GODEBUG=netdns=go +ENV USER git \ + GITEA_CUSTOM /data/gitea \ + GODEBUG=netdns=go VOLUME ["/data"] |