Browse Source

dockerfile: edit timezone for Shanghai 4

Yi 1 year ago
parent
commit
234cf44495
2 changed files with 1 additions and 7 deletions
  1. 1 3
      .drone.yml
  2. 0 4
      Dockerfile

+ 1 - 3
.drone.yml

@@ -1,8 +1,7 @@
 kind: pipeline
 type: docker
 name: kpt-tmr
-#workspace:
-  #path: /drone/src
+
 clone:
   depth: 1
   disable: true
@@ -12,7 +11,6 @@ steps:
     commands:
      - git clone -b develop http://192.168.1.8:3000/baishaojie/tmrgo.git
      - cp -R tmrgo/* ./
-     - date
   - name: build
     image: plugins/docker:20.14.2
     volumes:

+ 0 - 4
Dockerfile

@@ -22,12 +22,8 @@ owner="yiping.xu"
 WORKDIR /app/kpt-tmr
 
 RUN apk update && apk add tzdata
-RUN ls -l /usr/share && ls -l /usr/share/zoneinfo
 RUN ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
 && echo "Asia/Shanghai" > /etc/timezone \
-&& date
-
-
 
 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