FROM golang:alpine as builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN go build -o iphistory . FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /root/ COPY --from=builder /app/iphistory . EXPOSE 3000 CMD ["./iphistory"]