Skip to content

Dockerfile for ARM (RPi) #1404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions Dockerfile.rpi
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM hypriot/rpi-alpine-scratch:v3.4
MAINTAINER Thomas Boerger <[email protected]>
FROM armhf/alpine:3.5

EXPOSE 22 3000
ENV USER git
ENV GITEA_CUSTOM /data/gitea
ENV GODEBUG=netdns=go

RUN apk update && \
apk add \
Expand All @@ -14,6 +15,7 @@ RUN apk update && \
s6 \
curl \
openssh \
wget \
tzdata && \
rm -rf \
/var/cache/apk/* && \
Expand All @@ -29,14 +31,14 @@ RUN apk update && \
git && \
echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd

ENV USER git
ENV GITEA_CUSTOM /data/gitea
ENV GODEBUG=netdns=go
COPY docker /
RUN mkdir -p /app/gitea && \
wget -O /app/gitea/gitea https://dl.gitea.io/gitea/master/gitea-master-linux-arm-7 && \
chmod +x /app/gitea/gitea

EXPOSE 22 3000

VOLUME ["/data"]

ENTRYPOINT ["/usr/bin/entrypoint"]
CMD ["/bin/s6-svscan", "/etc/s6"]

COPY docker /
COPY gitea /app/gitea/gitea