FROM golang:1.20.2 as build LABEL author="vlbeaudoin" WORKDIR /go/src/app COPY go.mod go.sum main.go server.go ./ ADD public/ public/ RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o agecem-org . # Alpine FROM alpine:3.17.1 RUN apk update && apk upgrade --no-cache WORKDIR /app COPY --from=build /go/src/app/agecem-org /usr/bin/agecem-org CMD ["agecem-org"]