FROM golang:1.24-bookworm AS base # /build is the working directory WORKDIR /build # Copy control files and pull in dependencies COPY code/ ./ RUN go mod tidy \ && go mod download ENV port=8089 # Build the app RUN go build -o fibonacci EXPOSE ${port} CMD ["build/fibonacci"]