2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 06:28:23 +01:00
This commit is contained in:
kev
2019-10-20 11:31:17 +08:00
parent 8f7eabdc88
commit 392b574128
10 changed files with 137 additions and 66 deletions

View File

@@ -2,22 +2,23 @@
# Dockerfile for gogs-arm
#
FROM easypi/alpine-arm
FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation
ENV GOSU_VERSION 1.11
ENV GOGS_VERSION 0.11.91
ENV GOGS_CUSTOM /data/gogs
RUN apk add --no-cache bash \
ca-certificates \
curl \
git \
linux-pam \
openssh \
s6 \
socat \
tar
RUN apk add --no-cache \
bash \
ca-certificates \
curl \
git \
linux-pam \
openssh \
s6 \
socat \
tar
RUN set -xe \
&& adduser -H -D -g 'Gogs Git User' -h /data/git -s /bin/bash git \
@@ -32,9 +33,9 @@ RUN set -xe \
&& mkdir /app/ \
&& cd /app/ \
&& 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
&& unzip raspi_armv7.zip \
&& rm raspi_armv7.zip \
&& ln -s /lib/libc.musl-armv7.so.1 /lib/ld-linux-armhf.so.3
RUN set -xe \
&& cd /app/gogs/ \