feat: 执行器runner基本搭建完成 + drone ci/cd

This commit is contained in:
2025-04-07 19:27:58 +08:00
parent f05cd6c54c
commit 5ab14628c1
9 changed files with 154 additions and 8 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM 10.7.127.190:38080/openjdk:11.0.10-jre
ENV SERVICE_PORTS=8080
ENV PROFILES=pro
RUN mkdir -p /app/
WORKDIR /app
# 定义时区参数并设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY ./target/metis-1.0.0-SNAPSHOT.jar /app/metis.jar
RUN chmod 755 -R /app/
CMD java -jar /app/metis.jar -Xms256m -Xmx512m --spring.profiles.active=${PROFILES} --server.port=${SERVICE_PORTS}