Skip to content

Commit

Permalink
Replace Dockerfile Alpine linux with Ubuntu (prebid#885)
Browse files Browse the repository at this point in the history
* Ubuntu dockerfile works, includes backups and out file

* Ubuntu Dockerfile creates image successfully and prebid-server was tested with a sample request. Seems to work fine

* Ubuntu 18.04 now builds, validates.sh, and curls sample request successfully

* Removed sed command
  • Loading branch information
guscarreon authored and hhhjort committed May 21, 2019
1 parent 3a72f14 commit aa99344
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
FROM alpine:3.8 AS build
FROM ubuntu:18.04 AS build
WORKDIR /go/src/github.com/prebid/prebid-server/
RUN apk add -U --no-cache go git dep musl-dev
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y git golang go-dep && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV GOPATH /go
ENV CGO_ENABLED 0
COPY ./ ./
RUN dep ensure
RUN go build .
RUN dep ensure && \
go build .


FROM alpine:3.8 AS release
MAINTAINER Hans Hjort <[email protected]>
FROM ubuntu:18.04 AS release
LABEL maintainer="[email protected]"
WORKDIR /usr/local/bin/
COPY --from=build /go/src/github.com/prebid/prebid-server/prebid-server .
COPY static static/
COPY stored_requests/data stored_requests/data
RUN apk add -U --no-cache ca-certificates mtr
RUN apt-get update && \
apt-get install -y ca-certificates mtr && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EXPOSE 8000
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/prebid-server"]
Expand Down

0 comments on commit aa99344

Please sign in to comment.