This repository has been archived by the owner on Feb 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from AirHelp/bump-up-go
Bump up Go to 1.11.0 & alpine to 3.8
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 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,17 +1,24 @@ | ||
FROM golang:1.9.2-alpine3.6 AS golang-build | ||
FROM golang:1.11.0-alpine3.8 AS golang-build | ||
|
||
RUN mkdir -p /go/src/github.com/AirHelp/rabbit-amazon-forwarder | ||
WORKDIR /go/src/github.com/AirHelp/rabbit-amazon-forwarder | ||
|
||
RUN apk --no-cache add git && go get -u github.com/golang/dep/cmd/dep | ||
|
||
COPY Gopkg.toml Gopkg.lock ./ | ||
RUN dep ensure -v -vendor-only | ||
|
||
COPY . . | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o rabbit-amazon-forwarder . | ||
|
||
FROM alpine:3.6 | ||
FROM alpine:3.8 | ||
|
||
RUN mkdir -p /config | ||
RUN apk --update upgrade && \ | ||
apk add curl ca-certificates && \ | ||
update-ca-certificates && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
COPY --from=golang-build /go/src/github.com/AirHelp/rabbit-amazon-forwarder/rabbit-amazon-forwarder / | ||
CMD ["/rabbit-amazon-forwarder"] |
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,7 +1,10 @@ | ||
FROM golang:1.9.2-alpine3.6 | ||
FROM golang:1.11.0-alpine3.8 | ||
|
||
WORKDIR /go/src/github.com/AirHelp/rabbit-amazon-forwarder | ||
RUN apk --no-cache add git && go get -u github.com/golang/dep/cmd/dep | ||
|
||
RUN apk --no-cache add git gcc musl-dev && go get -u github.com/golang/dep/cmd/dep | ||
|
||
COPY Gopkg.toml Gopkg.lock ./ | ||
RUN dep ensure -v -vendor-only | ||
COPY . . | ||
|
||
COPY . . |