fix docker build error
This commit is contained in:
parent
4077e19f34
commit
c986453dca
@ -1,5 +1,5 @@
|
|||||||
FROM golang:1.12.1-alpine as builder
|
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 \
|
RUN apk add --no-cache make git \
|
||||||
&& go get -u github.com/otakukaze/go-bindata/...
|
&& go get -u github.com/otakukaze/go-bindata/...
|
||||||
COPY . .
|
COPY . .
|
||||||
@ -8,7 +8,7 @@ RUN make
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
WORKDIR /data
|
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
|
COPY config.default.yml config.yml
|
||||||
EXPOSE 10230
|
EXPOSE 10230
|
||||||
CMD ["/usr/bin/mtfosbot", "-f", "/data/config.yml", "-dbtool"]
|
CMD ["/usr/bin/mtfosbot", "-f", "/data/config.yml", "-dbtool"]
|
||||||
|
Loading…
Reference in New Issue
Block a user