-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify how the docker image is built by using one docker file, so t…
…hat the image can be built on Heroku as well #122
- Loading branch information
Showing
3 changed files
with
20 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
# build stage | ||
FROM golang:1.11.1-alpine AS build-env | ||
|
||
ENV GOPATH /go | ||
ENV GOOS linux | ||
|
||
RUN apk add --update git bash | ||
|
||
ADD packaging/install-vips.sh install-vips.sh | ||
RUN ./install-vips.sh | ||
|
||
ADD . /go/src/github.com/zalando-stups/skrop | ||
WORKDIR /go/src/github.com/zalando-stups/skrop | ||
|
||
RUN go get github.com/Masterminds/glide | ||
|
||
RUN go build ./cmd/skrop | ||
|
||
# final stage | ||
FROM danpersa/alpine-mozjpeg-vips:3.3.1-8.7.0 | ||
|
||
ARG ROUTES_FILE | ||
|
||
ADD skrop /usr/local/bin/ | ||
COPY --from=0 /go/src/github.com/zalando-stups/skrop/skrop /usr/local/bin/ | ||
ADD $ROUTES_FILE skrop.eskip | ||
|
||
ENTRYPOINT skrop -routes-file skrop.eskip ${SKROP_ARGS} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters