We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8788e commit 84b0b99Copy full SHA for 84b0b99
docker-image/nezha-agent/Dockerfile
@@ -6,6 +6,10 @@ ADD https://github.com/nezhahq/agent/releases/download/$NEZHA_AGENT_VERSION/nezh
6
7
RUN unzip /tmp/nezha-agent_linux_amd64.zip -d /usr/local/bin && rm /tmp/nezha-agent_linux_amd64.zip
8
9
+RUN addgroup -S nezha && adduser -S -D -h /home/nezha -G nezha nezha
10
+USER nezha
11
+WORKDIR /home/nezha
12
+
13
ENTRYPOINT ["nezha-agent"]
14
15
0 commit comments