10 lines
367 B
Docker
10 lines
367 B
Docker
|
# WARNING: Do not EDIT or MERGE this file, it is generated by 'packagespec lock'.
|
||
|
ARG BASE_IMAGE
|
||
|
FROM $BASE_IMAGE
|
||
|
COPY . ./
|
||
|
ENV GOPATH /gopath
|
||
|
ENV GOROOT /goroot
|
||
|
RUN mkdir $GOROOT && mkdir $GOPATH
|
||
|
RUN curl https://storage.googleapis.com/golang/go1.14.7.linux-amd64.tar.gz \
|
||
|
| tar xzf - -C $GOROOT --strip-components=1
|
||
|
ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH
|