Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #30 from AirHelp/bump-up-go
Browse files Browse the repository at this point in the history
Bump up Go to 1.11.0 & alpine to 3.8
  • Loading branch information
kszarek authored Sep 14, 2018
2 parents 7f31ca8 + 69c294d commit 942f6a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
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"]
9 changes: 6 additions & 3 deletions Dockerfile-test
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 . .

0 comments on commit 942f6a3

Please sign in to comment.