This commit is contained in:
12
Dockerfile.gitea-job
Normal file
12
Dockerfile.gitea-job
Normal file
@@ -0,0 +1,12 @@
|
||||
# Gitea Actions 任务容器:预装 headless JDK 11 + Git
|
||||
ARG UBUNTU_IMAGE=ubuntu:24.04
|
||||
FROM ${UBUNTU_IMAGE}
|
||||
|
||||
RUN sed -i 's|http://archive.ubuntu.com/ubuntu|http://mirrors.aliyun.com/ubuntu|g; \
|
||||
s|http://security.ubuntu.com/ubuntu|http://mirrors.aliyun.com/ubuntu|g' \
|
||||
/etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& apt-get update -qq \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
openjdk-11-jdk-headless git ca-certificates curl \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& java -version
|
||||
Reference in New Issue
Block a user