Skip to content

Instantly share code, notes, and snippets.

@zeroidentidad
Created July 9, 2023 17:11
Show Gist options
  • Save zeroidentidad/e463860e2e2da37c122fa0405d5d7157 to your computer and use it in GitHub Desktop.
Save zeroidentidad/e463860e2e2da37c122fa0405d5d7157 to your computer and use it in GitHub Desktop.
alpine with go
FROM alpine:latest
RUN apk add --no-cache git make musl-dev go
# Configure Go
ENV GOROOT /usr/lib/go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
WORKDIR $GOPATH
CMD ["make"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment