Skip to content

Commit

Permalink
optimize: optimize docker timezone
Browse files Browse the repository at this point in the history
Signed-off-by: slievrly <slievrly@163.com>
  • Loading branch information
slievrly committed Jul 12, 2023
1 parent 293d333 commit 9821f0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions distribution/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ ADD LICENSE /seata-server/LICENSE

# set extra environment
ENV LOADER_PATH="/seata-server/lib"
ENV TZ="Asia/Shanghai"
CMD ["bash","-c","/seata-server/bin/seata-server.sh && tail -f /dev/null"]
4 changes: 4 additions & 0 deletions server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@
<arg>/bin/bash</arg>
<arg>/seata-server-entrypoint.sh</arg>
</entrypoint>
<environment>
<TZ>Asia/Shanghai</TZ>
</environment>
</container>
<extraDirectories>
<paths>
Expand All @@ -346,6 +349,7 @@
</paths>
</extraDirectories>
<skip>${image.publish.skip}</skip>
<allowInsecureRegistries>true</allowInsecureRegistries>
</configuration>
<executions>
<execution>
Expand Down

0 comments on commit 9821f0c

Please sign in to comment.