Unverified 提交 abe3dd87 authored 作者: 许雪里's avatar 许雪里 提交者: GitHub

Merge pull request #633 from caryyu/master

Docker: add Dockerfile for the xxl-job-executor-samples-springboot
.gitignore
.git/
src/
target/
target/*.jar.original
!target/*.jar
\ No newline at end of file
FROM openjdk:8-jre
LABEL name="caryyu/xxl-job-executor-sample-springboot" \
maintainer="Caryyu <343194291@qq.com>" \
version="0.1" \
description="A common xxl-job executor image for easily shipping via Docker"
ENV jarName=xxl-job-executor-sample-springboot-2.0.1.jar
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/TZ /etc/localtime && echo TZ /etc/localtime && echo TZ > /etc/timezone
ADD ./target/$jarName /
ADD ./docker-entrypoint.sh /
RUN chmod u+x /docker-entrypoint.sh
WORKDIR /
EXPOSE 8080
ENTRYPOINT ["/docker-entrypoint.sh"]
\ No newline at end of file
#!/bin/bash
java ${JAVA_OPTS} -jar ${jarName} $@
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论