-
Notifications
You must be signed in to change notification settings - Fork 85
/
Dockerfile
26 lines (19 loc) · 1002 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM resin/qemux86-alpine:latest
ENV GO_VERSION 1.4.3
RUN apk add --no-cache git gcc
RUN buildDeps='curl' \
&& set -x \
&& apk add --no-cache $buildDeps \
&& mkdir -p /usr/local/go \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/golang/v$GO_VERSION/go$GO_VERSION.linux-alpine-i386.tar.gz" \
&& echo "91e5c8ee3248d869977ce20342c265b3a62806188d5078f0e3a0a24c9094c0ea go1.4.3.linux-alpine-i386.tar.gz" | sha256sum -c - \
&& tar -xzf "go$GO_VERSION.linux-alpine-i386.tar.gz" -C /usr/local/go --strip-components=1 \
&& rm -f go$GO_VERSION.linux-alpine-i386.tar.gz \
&& apk del $buildDeps
ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH
COPY go-wrapper /usr/local/bin/
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: http://docs.resin.io/deployment/dockerfile"]