Skip to content

Commit d33b133

Browse files
author
Zhengyi Lai
authored
Update Dockerfile
1 parent 0584f06 commit d33b133

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
FROM openpitrix/openpitrix-builder as builder
22

3-
WORKDIR /go/src/openpitrix.io/Jobs/
3+
WORKDIR /go/src/github.com/openpitrix/ks-auto-migrate/
44
COPY . .
55

66
RUN mkdir -p /release_bin
7-
RUN GOPROXY=https://goproxy.io CGO_ENABLED=0 GOBIN=/release_bin go install -ldflags '-w -s' -tags netgo openpitrix.io/Jobs/cmd/...
7+
RUN CGO_ENABLED=0 GOBIN=/release_bin go install -ldflags '-w -s' -tags netgo github.com/openpitrix/ks-auto-migrate/cmd/...
88

99

1010
FROM alpine:3.7
11-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
1211
RUN apk add --update ca-certificates && update-ca-certificates
1312
COPY --from=builder /usr/local/go/lib/time/zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip
14-
COPY --from=builder /release_bin/* /usr/local/bin/
13+
COPY --from=builder /release_bin/* /usr/local/bin/

0 commit comments

Comments
 (0)