-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more work on trying to get alpine linux builds working
- Loading branch information
Showing
2 changed files
with
20 additions
and
9 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,9 +1,19 @@ | ||
FROM alpine:3.4 | ||
|
||
RUN apk add -U --repository http://dl-3.alpinelinux.org/alpine/edge/community/ go=1.7.1-r0 | ||
#RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ go=1.7.1-r0 | ||
|
||
COPY . /tmp | ||
RUN apk add --no-cache binutils curl git | ||
|
||
RUN mkdir -p /tmp/go | ||
RUN cd /tmp && \ | ||
curl -o go1.7.1.linux-amd64.tar.gz "https://storage.googleapis.com/golang/go1.7.1.linux-amd64.tar.gz" && \ | ||
tar xzf go1.7.1.linux-amd64.tar.gz && \ | ||
rm -f go1.7.1.linux-amd64.tar.gz | ||
|
||
ENV GOPATH /tmp/go | ||
RUN mkdir -p /tmp/gopath && \ | ||
mkdir -p /tmp/ecs-discoverer | ||
|
||
ENV PATH "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tmp/go/bin" | ||
|
||
ENV GOPATH "/tmp/gopath" | ||
|
||
COPY . /tmp/ecs-discoverer |
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