Skip to content

Commit be9b99b

Browse files
authored
fix: add --chown to Dockerfile COPY so app files are owned by bedrock_agentcore (#358)
COPY after USER still defaults to root:root ownership. Without --chown, application files in the container are owned by root even though the process runs as bedrock_agentcore, which customers may cargo-cult.
1 parent 6bf7a92 commit be9b99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/container/python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN uv pip install -r pyproject.toml
1414
RUN useradd -m -u 1000 bedrock_agentcore
1515
USER bedrock_agentcore
1616

17-
COPY . .
17+
COPY --chown=bedrock_agentcore:bedrock_agentcore . .
1818

1919
# 8080: AgentCore runtime endpoint
2020
# 8000: Local dev server (uvicorn)

0 commit comments

Comments
 (0)