Reoder && clean

master
Siroco 1 year ago
parent f0bd3123f0
commit 3bc35e53a3
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 6
      Dockerfile

@ -12,8 +12,9 @@ RUN wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz && \
rm -rf /usr/local/go && \
rm -rf /usr/bin/go && \
tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz && \
export PATH=/usr/local/go/bin:$PATH && \
go version
export PATH=/usr/local/go/bin:$PATH
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$'` && \
@ -30,7 +31,6 @@ WORKDIR /gitea
# npm fails to build them
#RUN make clean-all build
RUN ln -s /usr/local/go/bin/go /usr/bin/go
RUN make build
FROM registry.sindominio.net/debian

Loading…
Cancel
Save