Update: Golang 1.19 && Gitea extract

master
Siroco 2 months ago
parent bc4d5a8888
commit c9c65731c3
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 13
      Dockerfile

@ -7,12 +7,12 @@ RUN apt-get update && \
## Install Go 1.17 via Go web
RUN wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz && \
echo "dab7d9c34361dc21ec237d584590d72500652e7c909bf082758fb63064fca0ef go1.17.1.linux-amd64.tar.gz" > go.checksum && \
RUN wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz && \
echo "acc512fbab4f716a8f97a8b3fbaa9ddd39606a28be6c2515ef7c6c6311acffde go1.19.1.linux-amd64.tar.gz" > go.checksum && \
sha256sum -c go.checksum && \
rm -rf /usr/local/go && \
rm -rf /usr/bin/go && \
tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz && \
export PATH=/usr/local/go/bin:$PATH
RUN ln -s /usr/local/go/bin/go /usr/bin/go
@ -22,12 +22,13 @@ RUN ln -s /usr/local/go/bin/go /usr/bin/go
COPY gitea-key.asc /key.asc
RUN TGZ=`curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |jq -r '.assets[].browser_download_url' | grep 'src.*\.tar\.gz$'` && \
filename=`basename $TGZ` && filename="${filename%.*.*}" && \
curl -L ${TGZ} > /gitea.tar.gz && \
curl -L ${TGZ}.asc > /gitea.tar.gz.asc && \
gpg --import /key.asc && \
gpg --verify /gitea.tar.gz.asc /gitea.tar.gz && \
mkdir /gitea && cd /gitea && \
tar xvzf /gitea.tar.gz
tar xzf /gitea.tar.gz -C /tmp/ && \
mv /tmp/$filename /gitea
WORKDIR /gitea
@ -35,7 +36,7 @@ WORKDIR /gitea
# npm fails to build them
#RUN make clean-all build
RUN make build
RUN TAGS="bindata sqlite sqlite_unlock_notify" make build
FROM registry.sindominio.net/debian

Loading…
Cancel
Save