Skip to content

Commit aa0cb3c

Browse files
committed
Make the entrypoint more flexible
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 6b08fd1 commit aa0cb3c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/oci/Dockerfile.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ RUN cat <<EOF > /agent.yaml
99
EOF
1010
RUN chmod +r /agent.yaml && mkdir /data && chmod 777 -R /data
1111
USER cagent
12-
ENTRYPOINT ["/cagent", "api", "--session-db", "/data/session.db", "/agent.yaml"]
12+
ENTRYPOINT ["/cagent"]
13+
CMD ["api", "--session-db", "/data/session.db", "/agent.yaml"]
1314

1415
LABEL com.docker.agent.packaging.version="v0.0.1"
1516
LABEL com.docker.agent.runtime="cagent"

0 commit comments

Comments
 (0)