9 lines
155 B
Docker
9 lines
155 B
Docker
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"]
|