# syntax=docker/dockerfile:1 FROM golang:1.18-alpine WORKDIR /build # Copy all the source files COPY . . WORKDIR experian RUN GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w -extldflags "-static"' -o app . FROM alpine:3.15.0 WORKDIR /build/experian/app COPY --from=0 /build/experian/app . EXPOSE 5002 CMD ["./app", "run"]