FROM golang:1.23

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .

RUN go build -o /bin/PersonApp

EXPOSE 8080

CMD ["/bin/PersonApp"]