增加构建环境
This commit is contained in:
13
Dockerfile.buildagent
Normal file
13
Dockerfile.buildagent
Normal file
@ -0,0 +1,13 @@
|
||||
# 使用 JDK 8 作为构建环境
|
||||
FROM openjdk:8-jdk
|
||||
|
||||
# 安装 Maven
|
||||
RUN apt update && \
|
||||
apt install -y maven && \
|
||||
mvn --version
|
||||
|
||||
# 安装 Git(用于代码拉取)
|
||||
RUN apt install -y git
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /home/jenkins/workspace
|
||||
Reference in New Issue
Block a user