FROM golang:latest AS builder LABEL maintainer="Mike Crute " RUN set -eux; \ cd /tmp; \ go version; \ git clone https://code.crute.me/pomonaconsulting/website; \ cd website; \ CGO_ENABLED=0 go build -o website main.go; \ rm go.mod go.sum main.go FROM alpine:latest COPY --from=builder /tmp/website/ /srv/web/ WORKDIR "/srv/web" CMD [ "/srv/web/website" ]