Edit Dockerfile.agent

This commit is contained in:
Robin Shen 2024-04-23 12:32:18 +00:00
parent 3d4ca95261
commit 0309ec8cc1
No known key found for this signature in database
GPG Key ID: 3F6E0D857D529340

View File

@ -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