FROM golang:alpine3.13 as build RUN apk add gcc libc-dev WORKDIR /build COPY . . RUN go build -ldflags="-s -w" FROM alpine:3.13 WORKDIR /pacoloco COPY --from=build /build/pacoloco . EXPOSE 9129 CMD ["/pacoloco/pacoloco"]