diff --git a/Dockerfile b/Dockerfile index edf2fb3..ac1d2e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ FROM openpitrix/openpitrix-builder as builder -WORKDIR /go/src/openpitrix.io/Jobs/ +WORKDIR /go/src/github.com/openpitrix/ks-auto-migrate/ COPY . . RUN mkdir -p /release_bin -RUN GOPROXY=https://goproxy.io CGO_ENABLED=0 GOBIN=/release_bin go install -ldflags '-w -s' -tags netgo openpitrix.io/Jobs/cmd/... +RUN CGO_ENABLED=0 GOBIN=/release_bin go install -ldflags '-w -s' -tags netgo github.com/openpitrix/ks-auto-migrate/cmd/... FROM alpine:3.7 -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories RUN apk add --update ca-certificates && update-ca-certificates COPY --from=builder /usr/local/go/lib/time/zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip -COPY --from=builder /release_bin/* /usr/local/bin/ \ No newline at end of file +COPY --from=builder /release_bin/* /usr/local/bin/