Skip to content

The Unified and Autonomous Development Platform

Edit Dockerfile.agent

Robin Shen0309ec8cc1ed
diff --git a/server-product/docker/Dockerfile.agent b/server-product/docker/Dockerfile.agent
index 5f13b1a102..7705548648 100644
--- a/server-product/docker/Dockerfile.agent
+++ b/server-product/docker/Dockerfile.agent
@@ -1,9 +1,9 @@
# Build the docker image for onedev agent
-FROM ubuntu:22.04 AS build
+FROM ubuntu:24.04 AS build
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://get.docker.com | sh
-FROM ubuntu:22.04
+FROM ubuntu:24.04
COPY agent /agent
COPY entrypoint-agent.sh /root/bin/entrypoint.sh
COPY --from=build /usr/bin/docker /usr/local/bin/docker