2016-11-28 21:53:22 +05:30
|
|
|
FROM hypriot/rpi-alpine-scratch:v3.4
|
2016-11-28 18:43:18 +05:30
|
|
|
MAINTAINER Thomas Boerger <thomas@webhippie.de>
|
2015-11-22 20:44:08 +05:30
|
|
|
|
2016-11-28 18:43:18 +05:30
|
|
|
EXPOSE 22 3000
|
2015-11-22 20:44:08 +05:30
|
|
|
|
2016-11-28 21:46:13 +05:30
|
|
|
RUN apk update && \
|
|
|
|
apk add \
|
|
|
|
su-exec \
|
2016-11-28 18:43:18 +05:30
|
|
|
ca-certificates \
|
|
|
|
sqlite \
|
|
|
|
bash \
|
|
|
|
git \
|
|
|
|
linux-pam \
|
|
|
|
s6 \
|
|
|
|
curl \
|
|
|
|
openssh \
|
|
|
|
tzdata && \
|
|
|
|
rm -rf \
|
|
|
|
/var/cache/apk/* && \
|
2016-11-28 21:52:22 +05:30
|
|
|
addgroup \
|
2016-11-28 22:07:31 +05:30
|
|
|
-S -g 1000 \
|
2016-11-28 18:43:18 +05:30
|
|
|
git && \
|
2016-11-28 21:52:22 +05:30
|
|
|
adduser \
|
|
|
|
-S -H -D \
|
|
|
|
-h /data/git \
|
2016-11-28 18:43:18 +05:30
|
|
|
-s /bin/bash \
|
|
|
|
-u 1000 \
|
2016-11-28 21:52:22 +05:30
|
|
|
-G git \
|
2017-01-01 07:55:17 +05:30
|
|
|
git && \
|
|
|
|
echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
|
2015-11-22 20:44:08 +05:30
|
|
|
|
2016-11-28 18:43:18 +05:30
|
|
|
ENV USER git
|
|
|
|
ENV GITEA_CUSTOM /data/gitea
|
|
|
|
ENV GODEBUG=netdns=go
|
2016-01-25 18:37:37 +05:30
|
|
|
|
2015-11-22 20:44:08 +05:30
|
|
|
VOLUME ["/data"]
|
2016-11-28 18:43:18 +05:30
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/entrypoint"]
|
|
|
|
CMD ["/bin/s6-svscan", "/etc/s6"]
|
|
|
|
|
|
|
|
COPY docker /
|
2016-12-01 16:23:26 +05:30
|
|
|
COPY gitea /app/gitea/gitea
|