update
This commit is contained in:
@@ -51,7 +51,10 @@ function ChangeOwner {
|
||||
function StartProc {
|
||||
Print Start gitea ...
|
||||
su - gitea -c '
|
||||
gitea web --config /var/lib/gitea/custom/conf/app.ini
|
||||
gitea web \
|
||||
--work-path /var/lib/gitea \
|
||||
--custom-path /var/lib/gitea/custom \
|
||||
--config /var/lib/gitea/custom/conf/app.ini
|
||||
' &>> /var/log/gitea/gitea.out &
|
||||
PIDS="$PIDS $!"
|
||||
}
|
||||
|
@@ -2,7 +2,8 @@ ARG ARCH
|
||||
FROM harbor.colben.cn/general/alpine$ARCH
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
ADD --chown=root:root /ADD/ /opt/
|
||||
RUN apk update \
|
||||
RUN sed -i -e '/testing/d' -e 's/edge/latest-stable/' /etc/apk/repositories \
|
||||
&& apk update \
|
||||
&& apk add --no-cache gitea \
|
||||
&& sed -i 's,/ash,/bash,' /etc/passwd \
|
||||
&& cd /var/lib \
|
||||
|
@@ -6,7 +6,6 @@
|
||||
|
||||
set -euo pipefail
|
||||
export LANG=en_US.UTF-8
|
||||
trap Quit EXIT
|
||||
|
||||
[ 'x86_64' == "$(uname -m)" ] && ARCH='' || ARCH="-$(uname -m)"
|
||||
ROOT_DIR="$(cd $(dirname $0) && pwd)"
|
||||
@@ -57,6 +56,7 @@ function Build {
|
||||
}
|
||||
|
||||
function Main {
|
||||
trap Quit EXIT
|
||||
Update
|
||||
Build
|
||||
END=1
|
||||
|
Reference in New Issue
Block a user