complete CI - 4

This commit is contained in:
zeaslity
2022-11-23 09:48:37 +08:00
parent c932b5b11b
commit fa22907b08
2 changed files with 39 additions and 16 deletions

23
agent/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Base images that the image needs to depend on
FROM icederce/eclipse-temurin-11-jre-focal
# Set environment variables
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms2028m -Xmx2048m"
# Set time zone
RUN set -eux; \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime; \
echo $TZ > /etc/timezone \
# Create Folder
RUN mkdir -p /wdd
# Define the work dir
WORKDIR /wdd
# Copy the jar and rename it
COPY ./agent/target/agent-*.jar /wdd/agent.jar
# When the docker container starts, run the jar
ENTRYPOINT exec java ${JAVA_OPTS} -jar /wdd/agent.jar