mi-v1/Dockerfile

14 lines
262 B
Docker

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"]