mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 20:54:25 +08:00
🐳 Work about Docker. 修正 pig-quartz dockerfile
This commit is contained in:
parent
1bdf54bca3
commit
04204cd8b5
4
.github/workflows/mirror.yml
vendored
4
.github/workflows/mirror.yml
vendored
@ -2,9 +2,9 @@ name: 同步代码
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master,dev ]
|
branches: [ master,jdk17 ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master,dev ]
|
branches: [ master,jdk17 ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
|
@ -1,18 +1,15 @@
|
|||||||
FROM pig4cloud/java:8-jre
|
FROM alibabadragonwell/dragonwell:17-anolis
|
||||||
|
|
||||||
MAINTAINER wangiegie@gmail.com
|
|
||||||
|
|
||||||
ENV TZ=Asia/Shanghai
|
|
||||||
ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
|
|
||||||
|
|
||||||
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
||||||
|
|
||||||
RUN mkdir -p /pig-quartz
|
RUN mkdir -p /pig-quartz
|
||||||
|
|
||||||
WORKDIR /pig-quartz
|
WORKDIR /pig-quartz
|
||||||
|
|
||||||
EXPOSE 5007
|
ARG JAR_FILE=target/pig-quartz.jar
|
||||||
|
|
||||||
ADD ./target/pig-quartz.jar ./
|
COPY ${JAR_FILE} app.jar
|
||||||
|
|
||||||
CMD sleep 120;java $JAVA_OPTS -jar pig-quartz.jar
|
EXPOSE 5001
|
||||||
|
|
||||||
|
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
|
||||||
|
|
||||||
|
CMD sleep 60; java $JAVA_OPTS -jar app.jar
|
||||||
|
Loading…
Reference in New Issue
Block a user