Browse Source

Dockerfile for aarch64 (#1128) (#1130)

atzoum 3 years ago
parent
commit
05f0c4bbf5
1 changed files with 43 additions and 0 deletions
  1. 43 0
      Dockerfile.aarch64

+ 43 - 0
Dockerfile.aarch64

@@ -0,0 +1,43 @@
1
+FROM aarch64/alpine:3.5
2
+
3
+EXPOSE 22 3000
4
+
5
+RUN apk update && \
6
+  apk add \
7
+    su-exec \
8
+    ca-certificates \
9
+    sqlite \
10
+    bash \
11
+    git \
12
+    linux-pam \
13
+    s6 \
14
+    curl \
15
+    openssh \
16
+    tzdata && \
17
+  rm -rf \
18
+    /var/cache/apk/* && \
19
+  addgroup \
20
+    -S -g 1000 \
21
+    git && \
22
+  adduser \
23
+    -S -H -D \
24
+    -h /data/git \
25
+    -s /bin/bash \
26
+    -u 1000 \
27
+    -G git \
28
+    git && \
29
+  echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
30
+
31
+ENV USER git
32
+ENV GITEA_CUSTOM /data/gitea
33
+
34
+COPY docker /
35
+COPY gitea /app/gitea/gitea
36
+
37
+ENV GODEBUG=netdns=go
38
+
39
+VOLUME ["/data"]
40
+
41
+ENTRYPOINT ["/usr/bin/entrypoint"]
42
+CMD ["/bin/s6-svscan", "/etc/s6"]
43
+