Skip to content

Instantly share code, notes, and snippets.

@zrhoffman
Last active December 17, 2020 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zrhoffman/e624197b3b9e764bbf97b19257a12f78 to your computer and use it in GitHub Desktop.
Save zrhoffman/e624197b3b9e764bbf97b19257a12f78 to your computer and use it in GitHub Desktop.
linux/arm64 golang on alpine
FROM alpine:3.12
RUN ln -s lib lib64 && \
ln -s ld-musl-x86_64.so.1 lib/ld-linux-x86-64.so.2
RUN set -o pipefail && \
wget -O- https://golang.org/dl/go1.15.6.linux-amd64.tar.gz | \
tar xzC usr/local
ENV PATH=${PATH}:/usr/local/go/bin \
GOPATH=/go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment