Skip to content

Commit 94ba9de

Browse files
chapterjasonclaude
andcommitted
Fix COPY paths in base Dockerfile (build context is repo root)
docker/build-push-action runs with context: . so the entrypoint and coder-agent.service COPY sources need src/base/ prefixes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f6498c3 commit 94ba9de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/base/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ USER root
9797
# user after dockerd is up. The script itself is uploaded at container-create
9898
# time by the Terraform template (kreuzwerker/docker `upload` block).
9999
RUN mkdir -p /etc/coder
100-
COPY coder-agent.service /etc/systemd/system/coder-agent.service
100+
COPY src/base/coder-agent.service /etc/systemd/system/coder-agent.service
101101
RUN systemctl enable coder-agent.service
102102

103103
# Entrypoint claims fresh-volume mountpoints for the workspace user before
104104
# systemd starts. See entrypoint.sh for rationale.
105-
COPY --chmod=0755 entrypoint.sh /usr/local/sbin/coder-entrypoint
105+
COPY --chmod=0755 src/base/entrypoint.sh /usr/local/sbin/coder-entrypoint
106106
ENV USERNAME=${USERNAME}
107107

108108
ENTRYPOINT ["/usr/local/sbin/coder-entrypoint"]

0 commit comments

Comments
 (0)