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

fix gogs-arm

This commit is contained in:
kev 2019-10-20 08:55:08 +08:00
parent 69a40c101c
commit 6e391a9ffa

View File

@ -5,6 +5,7 @@
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
ENV GOSU_VERSION 1.11
ENV GOGS_VERSION 0.11.91
ENV GOGS_CUSTOM /data/gogs
@ -24,13 +25,13 @@ RUN set -xe \
&& echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile
RUN set -xe \
&& curl -L https://github.com/tianon/gosu/releases/download/1.10/gosu-armhf > /usr/sbin/gosu \
&& curl -L https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-armhf > /usr/sbin/gosu \
&& chmod +x /usr/sbin/gosu
RUN set -xe \
&& mkdir /app/ \
&& cd /app/ \
&& curl -LO https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/raspi2_armv6.zip \
&& curl -LO https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/raspi_armv7.zip \
&& unzip raspi2_armv6.zip \
&& rm raspi2_armv6.zip \
&& ln -s /lib/libc.musl-armhf.so.1 /lib/ld-linux-armhf.so.3