diff options
author | atzoum <atzoum@gmail.com> | 2017-03-10 04:02:55 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-10 10:02:55 +0800 |
commit | 05f0c4bbf5d277e2cee7659933b62a29942a4b3d (patch) | |
tree | ce60de4ebd9b234f066df90a8fc2961f6a2f5176 /Dockerfile.aarch64 | |
parent | 5463640fe65fb530349c246ef344c6d50d7c8db4 (diff) | |
download | gitea-05f0c4bbf5d277e2cee7659933b62a29942a4b3d.tar.gz gitea-05f0c4bbf5d277e2cee7659933b62a29942a4b3d.zip |
Dockerfile for aarch64 (#1128) (#1130)
Diffstat (limited to 'Dockerfile.aarch64')
-rw-r--r-- | Dockerfile.aarch64 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 new file mode 100644 index 0000000000..795e3548fe --- /dev/null +++ b/Dockerfile.aarch64 @@ -0,0 +1,43 @@ +FROM aarch64/alpine:3.5 + +EXPOSE 22 3000 + +RUN apk update && \ + apk add \ + su-exec \ + ca-certificates \ + sqlite \ + bash \ + git \ + linux-pam \ + s6 \ + curl \ + openssh \ + tzdata && \ + rm -rf \ + /var/cache/apk/* && \ + addgroup \ + -S -g 1000 \ + git && \ + adduser \ + -S -H -D \ + -h /data/git \ + -s /bin/bash \ + -u 1000 \ + -G git \ + git && \ + echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd + +ENV USER git +ENV GITEA_CUSTOM /data/gitea + +COPY docker / +COPY gitea /app/gitea/gitea + +ENV GODEBUG=netdns=go + +VOLUME ["/data"] + +ENTRYPOINT ["/usr/bin/entrypoint"] +CMD ["/bin/s6-svscan", "/etc/s6"] + |