forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile for aarch64 (go-gitea#1128)
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
|