Skip to content

Commit

Permalink
[Go Modules] Add proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Chastanier authored and benjaminch committed Oct 25, 2019
1 parent 01fb371 commit 07c6273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN mkdir -p /app/prebid-server/
WORKDIR /app/prebid-server/
ENV GOROOT=/usr/local/go
ENV PATH=$GOROOT/bin:$PATH
ENV GOPROXY="https://proxy.golang.org"
RUN apt-get update && \
apt-get install -y git && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ all:
# deps will clean out the vendor directory and use go mod for a fresh install
deps:
rm -rf vendor
go mod vendor
go mod tidy
go mod vendor -v
go mod tidy -v

# test will ensure that all of our dependencies are available and run validate.sh
test: deps
Expand All @@ -29,8 +29,8 @@ test: deps

# build will ensure all of our tests pass and then build the go binary
build: test
go build -mod=vendor ./...
$GOPROXY go build -mod=vendor ./...

# image will build a docker image
image: build
docker build -t prebid-server .
docker build -t prebid-server .

0 comments on commit 07c6273

Please sign in to comment.