FROM golang:alpine as build
WORKDIR /root
COPY . .
RUN go build

FROM alpine
COPY --from=build /root/test /root/test
EXPOSE 5000
ENTRYPOINT ["/root/test"]