From c986453dca72e5d7e8231fccce273ff2d2bcd681 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 1 Apr 2019 09:20:25 +0000 Subject: [PATCH] fix docker build error --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cb75c98..d07d330 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM golang:1.12.1-alpine as builder -WORKDIR /go/src/git.trj.tw/golang/mtfosbot +WORKDIR /data RUN apk add --no-cache make git \ && go get -u github.com/otakukaze/go-bindata/... COPY . . @@ -8,7 +8,7 @@ RUN make FROM alpine:latest RUN apk add --no-cache ca-certificates WORKDIR /data -COPY --from=builder /go/src/git.trj.tw/golang/mtfosbot/mtfosbot /usr/bin +COPY --from=builder /data/mtfosbot /usr/bin COPY config.default.yml config.yml EXPOSE 10230 CMD ["/usr/bin/mtfosbot", "-f", "/data/config.yml", "-dbtool"]