|
@@ -13,7 +13,6 @@ RUN go env -w GO111MODULE=on && \
|
|
go env -w GOOS=linux && \
|
|
go env -w GOOS=linux && \
|
|
go build -o ./bin/kptTmr -ldflags "-X kpt.kptyun.cn:3000/kpt-event/kpt-tmr/pod.appVersion=tmr" main.go
|
|
go build -o ./bin/kptTmr -ldflags "-X kpt.kptyun.cn:3000/kpt-event/kpt-tmr/pod.appVersion=tmr" main.go
|
|
|
|
|
|
-RUN ls -l && pwd
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
FROM alpine:latest
|
|
LABEL name="kpt-tmr" \
|
|
LABEL name="kpt-tmr" \
|
|
@@ -22,13 +21,14 @@ owner="yiping.xu"
|
|
|
|
|
|
WORKDIR /app/kpt-tmr
|
|
WORKDIR /app/kpt-tmr
|
|
|
|
|
|
|
|
+RUN apk update && apk add tzdata
|
|
RUN ls -l /usr/share && ls -l /usr/share/zoneinfo
|
|
RUN ls -l /usr/share && ls -l /usr/share/zoneinfo
|
|
-
|
|
|
|
-RUN apk add --no-cache tzdata \
|
|
|
|
-&& ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
|
|
|
|
+RUN ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
|
&& date
|
|
&& date
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
COPY --from=0 /app/kpt-tmr/conf/ /app/kpt-tmr/bin/conf/
|
|
COPY --from=0 /app/kpt-tmr/conf/ /app/kpt-tmr/bin/conf/
|
|
COPY --from=0 /app/kpt-tmr/bin/kptTmr /app/kpt-tmr/bin/kptTmr
|
|
COPY --from=0 /app/kpt-tmr/bin/kptTmr /app/kpt-tmr/bin/kptTmr
|
|
|
|
|