mi-v1/Dockerfile

14 lines
262 B
Docker
Raw Normal View History

2020-01-11 21:06:44 +00:00
FROM xena/go:1.13.5 AS build
WORKDIR /mi
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN GOBIN=/mi/bin go install ./cmd/...
FROM xena/alpine
COPY --from=build /mi/bin /usr/local/bin
COPY ./run /run
RUN mkdir -p /mi
CMD ["/bin/sh", "/run/start.sh"]