1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/gogs/arm/Dockerfile

49 lines
1.3 KiB
Docker
Raw Normal View History

2016-06-03 05:27:28 +02:00
#
# Dockerfile for gogs-arm
#
2016-07-28 18:07:14 +02:00
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
2016-06-03 05:27:28 +02:00
2019-02-01 14:42:07 +02:00
ENV GOGS_VERSION 0.11.86
2016-06-03 05:27:28 +02:00
ENV GOGS_CUSTOM /data/gogs
2016-07-28 18:07:14 +02:00
RUN apk add --no-cache bash \
ca-certificates \
curl \
git \
linux-pam \
openssh \
s6 \
socat \
tar
2016-06-03 05:27:28 +02:00
RUN set -xe \
&& adduser -H -D -g 'Gogs Git User' -h /data/git -s /bin/bash git \
&& passwd -u git \
&& echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile
RUN set -xe \
2016-12-24 13:11:26 +02:00
&& curl -L https://github.com/tianon/gosu/releases/download/1.10/gosu-armhf > /usr/sbin/gosu \
2016-06-03 05:27:28 +02:00
&& chmod +x /usr/sbin/gosu
RUN set -xe \
&& mkdir /app/ \
&& cd /app/ \
2017-03-04 08:07:16 +02:00
&& curl -LO https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/raspi2_armv6.zip \
&& unzip raspi2_armv6.zip \
&& rm raspi2_armv6.zip \
2017-02-01 15:43:52 +02:00
&& ln -s /lib/libc.musl-armhf.so.1 /lib/ld-linux-armhf.so.3
2016-06-03 05:27:28 +02:00
RUN set -xe \
&& cd /app/gogs/ \
2016-08-05 15:49:14 +02:00
&& curl -L https://github.com/gogits/gogs/archive/v${GOGS_VERSION}.tar.gz | tar xz --strip 1 gogs-${GOGS_VERSION}/docker \
2016-06-03 05:27:28 +02:00
&& mv docker/nsswitch.conf /etc/
WORKDIR /app/gogs/
VOLUME /data/
EXPOSE 22 3000
CMD ["docker/start.sh", "/bin/s6-svscan", "/app/gogs/docker/s6/"]