2023-05-23 18:17:57 +08:00
|
|
|
FROM bitnami/git:latest
|
|
|
|
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
|
|
|
|
RUN apt update
|
|
|
|
RUN apt install -y vim nano curl wget
|
2023-05-23 18:29:59 +08:00
|
|
|
RUN wget --no-check-certificate https://go.dev/dl/go1.20.4.linux-amd64.tar.gz
|
2023-05-23 18:17:57 +08:00
|
|
|
RUN tar -C /usr/local -xzf go1.20.4.linux-amd64.tar.gz
|
|
|
|
ENV PATH=$PATH:/usr/local/go/bin
|
|
|
|
RUN go version
|
2023-05-24 09:29:32 +08:00
|
|
|
RUN go env -w GOPROXY=https://goproxy.cn
|
2023-05-23 18:17:57 +08:00
|
|
|
ADD ./ /gitea_hat/
|
|
|
|
RUN cd /gitea_hat/ && ls -lh && sh build.sh
|
2023-06-14 09:43:39 +08:00
|
|
|
|
|
|
|
#/gitea_hat/gitea_hat admin user create --username root --password 123456 --email root@forge.com --admin
|