Skip to content

Commit 05f0c4b

Browse files
atzoumlunny
authored andcommitted
Dockerfile for aarch64 (#1128) (#1130)
1 parent 5463640 commit 05f0c4b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Dockerfile.aarch64

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+

0 commit comments

Comments
 (0)