matrix-handler/Dockerfile

9 lines
217 B
Docker
Raw Normal View History

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