Skip to content

Commit 4473889

Browse files
authored
Merge pull request #442 from dgageot/fix-cagent-build
Fix cagent build
2 parents aab5643 + 7032431 commit 4473889

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/oci/Dockerfile.template

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ VOLUME /data
2424
ENV TELEMETRY_ENABLED=true
2525
ENV CAGENT_HIDE_FEEDBACK_LINK=0
2626
ENV CAGENT_HIDE_TELEMETRY_BANNER=0
27-
CMD ["api", "--listen", "unix:///data/agent.sock", "--session-db", "/data/session.db", "/agent.yaml"]
28-
RUN cat <<EOF >/agent.yaml
27+
USER root
28+
RUN cat <<EOF >/agent.yaml && chmod 777 /agent.yaml
2929
{{ .AgentConfig }}
3030
EOF
31+
USER cagent
32+
CMD ["api", "--listen", "unix:///data/agent.sock", "--session-db", "/data/session.db", "/agent.yaml"]

0 commit comments

Comments
 (0)