Skip to content

Commit 35ae0e4

Browse files
committed
Revert ONBUILD: explicitly COPY policy.yaml in child images
1 parent 7091bd4 commit 35ae0e4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

sandboxes/base/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ FROM devtools AS final
6969
# Ensure policy directory exists
7070
RUN mkdir -p /etc/navigator
7171

72-
# Auto-copy policy.yaml from child build contexts if present.
73-
# The trailing wildcard means the COPY is a no-op when the file doesn't exist.
74-
ONBUILD COPY policy.yaml* /etc/navigator/
75-
7672
# Set up sandbox user home directory
7773
RUN mkdir -p /sandbox/.claude/skills /sandbox/.agents/skills /sandbox/.openclaw/skills && \
7874
printf 'export PS1="\\u@\\h:\\w\\$ "\n' > /sandbox/.bashrc && \

sandboxes/openclaw/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ USER root
1717
# Install OpenClaw CLI
1818
RUN npm install -g openclaw
1919

20-
# policy.yaml is automatically copied by the base image ONBUILD directive
20+
# Copy sandbox policy
21+
COPY policy.yaml /etc/navigator/policy.yaml
2122

2223
# Copy the OpenClaw startup helper
2324
COPY openclaw-start.sh /usr/local/bin/openclaw-start

0 commit comments

Comments
 (0)