Dockerfile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2019 Seata.io Group.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # the Dockerfile support x86 & arrch64
  15. # build:
  16. # 1. mvn -Prelease-seata -Dmaven.test.skip=true clean install -U
  17. # 2. cd distribution/target/seata-server-xxx/seata/
  18. # 3. docker build --no-cache --build-arg SEATA_VERSION=1.6.0-SNAPSHOT -t seata-server:1.6.0-dev .
  19. #
  20. # run:
  21. # 1. docker run --name=seata-server -d seata-server:1.6.0-dev
  22. #
  23. # https://hub.docker.com/orgs/seataio
  24. FROM openjdk:8u342
  25. # set label
  26. LABEL maintainer="Seata <seata.io>"
  27. WORKDIR /$BASE_DIR
  28. # ADD FORM distribution
  29. ADD bin/ /seata-server/bin
  30. ADD ext/ /seata-server/ext
  31. ADD target/ /seata-server/target
  32. ADD lib/ /seata-server/lib
  33. ADD conf/ /seata-server/conf
  34. ADD LICENSE /seata-server/LICENSE
  35. # set extra environment
  36. ENV LOADER_PATH="/seata-server/lib"
  37. CMD ["bash","-c","/seata-server/bin/seata-server.sh && tail -f /dev/null"]