2021-02-04 01:38:07 -06:00
|
|
|
FROM golang:alpine AS build
|
|
|
|
|
|
|
|
WORKDIR /root/
|
2021-02-04 01:40:03 -06:00
|
|
|
COPY . /root/
|
2021-02-04 01:38:07 -06:00
|
|
|
RUN go build -o /root/matrix-handler cmd/svr/main.go
|
|
|
|
|
2021-02-04 01:45:50 -06:00
|
|
|
FROM alpine
|
2021-02-04 01:38:07 -06:00
|
|
|
COPY --from=build /root/matrix-handler /bin/matrix-handler
|
|
|
|
ENTRYPOINT ["/bin/matrix-handler"]
|