File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,35 @@ Next, create the Dockerfile.
241241 ENTRYPOINT [ " ./start.sh" ]
242242 ` ` `
243243
244+ * For Ubuntu 24.04:
245+ ` ` ` dockerfile
246+ FROM ubuntu:24.04
247+ ENV TARGETARCH=" linux-x64"
248+ # Also can be "linux-arm", "linux-arm64".
249+
250+ RUN apt update && \
251+ apt upgrade -y && \
252+ apt install -y curl git jq libicu74
253+
254+ # Install Azure CLI
255+ RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
256+
257+ WORKDIR /azp/
258+
259+ COPY ./start.sh ./
260+ RUN chmod +x ./start.sh
261+
262+ # Create agent user and set up home directory
263+ RUN useradd -m -d /home/agent agent
264+ RUN chown -R agent:agent /azp /home/agent
265+
266+ USER agent
267+ # Another option is to run the agent as root.
268+ # ENV AGENT_ALLOW_RUNASROOT="true"
269+
270+ ENTRYPOINT [ " ./start.sh" ]
271+ ` ` `
272+
244273 * For Ubuntu 22.04:
245274 ` ` ` dockerfile
246275 FROM ubuntu:22.04
You can’t perform that action at this time.
0 commit comments