Skip to content

Commit

Permalink
dockerfile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Sep 8, 2018
1 parent a6cc026 commit 1af211f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ WORKDIR /go/src/github.com/in4it/ecs-upgrade/

COPY . .

RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && dep ensure
RUN apk add -u -t build-tools curl git && \
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && \
dep ensure && \
apk del build-tools && \
rm -rf /var/cache/apk/*

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ecs-upgrade *.go

#
Expand Down

0 comments on commit 1af211f

Please sign in to comment.