Dockerfile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # the Dockerfile support x86 & arrch64
  18. # build:
  19. # 1. mvn -Prelease-seata -Dmaven.test.skip=true clean install -U
  20. # 2. cd distribution/target/apache-seata-x.x.x-SNAPSHOT-incubating-bin/seata-server/
  21. # 3. docker build --no-cache --build-arg SEATA_VERSION=2.2.0-SNAPSHOT -t seata-server:2.2.0-dev .
  22. #
  23. # run:
  24. # 1. docker run --name=seata-server -d seata-server:2.2.0-dev
  25. #
  26. # https://hub.docker.com/r/apache/seata-server
  27. FROM eclipse-temurin:8u422-b05-jdk
  28. # set label
  29. LABEL maintainer="Seata <seata.apache.org>"
  30. WORKDIR /$BASE_DIR
  31. # ADD FORM distribution
  32. ADD bin/ /seata-server/bin
  33. ADD ext/ /seata-server/ext
  34. ADD lib/ /seata-server/lib
  35. ADD conf/ /seata-server/conf
  36. ADD target /seata-server/target
  37. ADD LICENSE /LICENSE
  38. ADD NOTICE /NOTICE
  39. # set extra environment
  40. ENV LOADER_PATH="/seata-server/lib"
  41. ENV TZ="Asia/Shanghai"
  42. CMD ["bash","-c","/seata-server/bin/seata-server.sh && tail -f /dev/null"]