Skip to content

Commit 45c49cf

Browse files
moficodesvicentefb
andcommitted
fix: adk deploy docker file file permission
Co-authored-by: Vicente Ferrara <[email protected]>
1 parent cd357bf commit 45c49cf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/google/adk/cli/cli_deploy.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
# Create a non-root user
2828
RUN adduser --disabled-password --gecos "" myuser
2929
30-
# Change ownership of /app to myuser
31-
RUN chown -R myuser:myuser /app
32-
3330
# Switch to the non-root user
3431
USER myuser
3532
@@ -48,8 +45,8 @@
4845
4946
# Copy agent - Start
5047
51-
COPY "agents/{app_name}/" "/app/agents/{app_name}/"
52-
{install_agent_deps}
48+
# Set permission
49+
COPY --chown=myuser:myuser "agents/{app_name}/" "/app/agents/{app_name}/"
5350
5451
# Copy agent - End
5552

0 commit comments

Comments
 (0)