cdborinstein Claude Opus 4.5 commited on
Commit
2855e22
·
1 Parent(s): 1cbfdb8

Fix Dockerfile: use COPY --chmod instead of RUN chmod

Browse files

Base image runs as non-root user, so RUN chmod fails.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -5,8 +5,7 @@ RUN pip install --no-cache-dir huggingface_hub
5
 
6
  # Copy backup script and custom startup
7
  COPY backup_to_hub.py /home/argilla/backup_to_hub.py
8
- COPY start.sh /home/argilla/start.sh
9
- RUN chmod +x /home/argilla/start.sh
10
 
11
  # Copy custom Procfile that adds backup process
12
  COPY Procfile /home/argilla/Procfile
 
5
 
6
  # Copy backup script and custom startup
7
  COPY backup_to_hub.py /home/argilla/backup_to_hub.py
8
+ COPY --chmod=755 start.sh /home/argilla/start.sh
 
9
 
10
  # Copy custom Procfile that adds backup process
11
  COPY Procfile /home/argilla/Procfile