summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-08-04 23:58:16 +0200
committerLauris BH <lauris@nix.lv>2019-08-05 00:58:16 +0300
commitcd238bc41598e69a78b4d17370c8929911c5f249 (patch)
treef02847e44e274128eceafc1d8ea72d1aaf82c1bf /Dockerfile
parent5b902e2368fdb67eda4ba033f7167fadf72e4350 (diff)
downloadgitea-cd238bc41598e69a78b4d17370c8929911c5f249.tar.gz
gitea-cd238bc41598e69a78b4d17370c8929911c5f249.zip
build: use GOPROXY and disable download on some steps (#7745)
* build: use GOPROXY * disable download vendor on some steps
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index f13fdbe55f..6fa367a3ee 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,9 @@
#Build stage
FROM golang:1.12-alpine3.10 AS build-env
+ARG GOPROXY
+ENV GOPROXY ${GOPROXY:-direct}
+
ARG GITEA_VERSION
ARG TAGS="sqlite sqlite_unlock_notify"
ENV TAGS "bindata $TAGS"