FROM golang:1.23.0 AS build ARG agecem_org_version LABEL author="Victor Lacasse-Beaudoin " WORKDIR /go/src/app COPY go.mod go.sum LICENSE ./ ADD cmd/ cmd/ ADD pkg/ pkg/ ADD ui/ ui/ RUN CGO_ENABLED=0 go build -a -o agecem-org \ -ldflags="-X 'git.agecem.com/agecem/agecem-org/pkg/agecemorg/version.version=$agecem_org_version'" \ ./cmd/agecemorg/ # Alpine FROM alpine:3.20.2 AS run COPY --from=build /go/src/app/agecem-org /usr/bin/agecem-org CMD ["agecem-org", "server"]