aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile.aarch64
diff options
context:
space:
mode:
authorPeter Dave Hello <hsu@peterdavehello.org>2017-04-28 19:55:19 +0800
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-04-29 21:05:25 +0200
commit1562e9ab707f13e922ea52361fcdb663a14239fb (patch)
tree83169d3b389e76b2080e042a656fdeb991e72464 /Dockerfile.aarch64
parente31c02d4bf055a9d2a107eb89e0d39062d70f606 (diff)
downloadgitea-1562e9ab707f13e922ea52361fcdb663a14239fb.tar.gz
gitea-1562e9ab707f13e922ea52361fcdb663a14239fb.zip
Refactor Dockerfile
1. Use `apk -U --no-cache add` instead of `apk update` + `apk add` + manually cache clean up. 2. Separate package installation and user, group setup, the combination to reduce a docker image layer didn't bring benefits here, only makes Dockerfiles more complex.
Diffstat (limited to 'Dockerfile.aarch64')
-rw-r--r--Dockerfile.aarch649
1 files changed, 3 insertions, 6 deletions
diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64
index 795e3548fe..d9788ee739 100644
--- a/Dockerfile.aarch64
+++ b/Dockerfile.aarch64
@@ -2,8 +2,7 @@ FROM aarch64/alpine:3.5
EXPOSE 22 3000
-RUN apk update && \
- apk add \
+RUN apk -U --no-cache add \
su-exec \
ca-certificates \
sqlite \
@@ -13,10 +12,8 @@ RUN apk update && \
s6 \
curl \
openssh \
- tzdata && \
- rm -rf \
- /var/cache/apk/* && \
- addgroup \
+ tzdata
+RUN addgroup \
-S -g 1000 \
git && \
adduser \