mirror of
https://github.com/golang/go
synced 2024-11-23 05:50:05 -07:00
f48a9fb815
Add scripts and docs for packaging releases. Change-Id: I0682c92bbb2e229d2636762e49fe73513852d351 Reviewed-on: https://go-review.googlesource.com/57890 Reviewed-by: Adam Langley <agl@golang.org>
30 lines
704 B
Plaintext
30 lines
704 B
Plaintext
# Template for Dockerfile, used in build.docker script.
|
|
# Based on https://github.com/docker-library/golang/blob/master/1.9-rc/stretch/Dockerfile
|
|
FROM buildpack-deps:stretch-scm
|
|
|
|
# gcc for cgo
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
g++ \
|
|
gcc \
|
|
libc6-dev \
|
|
make \
|
|
pkg-config \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ADD UUU /go.tgz
|
|
|
|
RUN set -eux; \
|
|
\
|
|
echo "SSS /go.tgz" | sha256sum -c -; \
|
|
tar -C /usr/local -xzf /go.tgz; \
|
|
rm /go.tgz; \
|
|
export PATH="/usr/local/go/bin:$PATH"; \
|
|
go version
|
|
|
|
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/
|