Skip to content

Commit

Permalink
Disabled CGO during the build (prebid#606)
Browse files Browse the repository at this point in the history
* Disabled CGO during the build.

* Named myself the Dockerfile maintainer.
  • Loading branch information
dbemiller authored Jul 10, 2018
1 parent 99820c0 commit 62ce348
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ FROM alpine:3.8 AS build
WORKDIR /go/src/github.com/prebid/prebid-server/
RUN apk add -U --no-cache go git dep musl-dev
ENV GOPATH /go
ENV CGO_ENABLED 0
COPY ./ ./
RUN dep ensure
RUN go build .


FROM alpine:3.8 AS release
MAINTAINER Brian O'Kelley <bokelley@appnexus.com>
MAINTAINER Dave Bemiller <dbemiller@appnexus.com>
WORKDIR /usr/local/bin/
COPY --from=build /go/src/github.com/prebid/prebid-server/prebid-server .
COPY static static/
Expand Down

0 comments on commit 62ce348

Please sign in to comment.