|
|
@ -7,7 +7,7 @@ export GOPATH=/tmp/go |
|
|
|
export PATH=${PATH}:${GOPATH}/bin |
|
|
|
export PATH=${PATH}:${GOPATH}/bin |
|
|
|
|
|
|
|
|
|
|
|
# Install build deps |
|
|
|
# Install build deps |
|
|
|
apk -U --no-progress add linux-pam-dev go@community gcc musl-dev |
|
|
|
apk -U --no-progress add --virtual build-deps linux-pam-dev go@community gcc musl-dev |
|
|
|
|
|
|
|
|
|
|
|
# Init go environment to build Gogs |
|
|
|
# Init go environment to build Gogs |
|
|
|
mkdir -p ${GOPATH}/src/github.com/gogits/ |
|
|
|
mkdir -p ${GOPATH}/src/github.com/gogits/ |
|
|
@ -20,7 +20,7 @@ go build -tags "sqlite cert pam" |
|
|
|
rm -r $GOPATH |
|
|
|
rm -r $GOPATH |
|
|
|
|
|
|
|
|
|
|
|
# Remove build deps |
|
|
|
# Remove build deps |
|
|
|
apk --no-progress del linux-pam-dev go gcc musl-dev |
|
|
|
apk --no-progress del build-deps |
|
|
|
|
|
|
|
|
|
|
|
# Create git user for Gogs |
|
|
|
# Create git user for Gogs |
|
|
|
adduser -H -D -g 'Gogs Git User' git -h /data/git -s /bin/bash && passwd -u git |
|
|
|
adduser -H -D -g 'Gogs Git User' git -h /data/git -s /bin/bash && passwd -u git |
|
|
|