tao-shen Claude Opus 4.6 commited on
Commit
bdc0fe0
·
1 Parent(s): e081bc5

fix: copy nginx.conf to /scripts/ AFTER COPY scripts (dir replace)

Browse files

COPY scripts /scripts replaces the entire directory, deleting any
files previously copied there. Move nginx.conf copy after it.

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

Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -44,15 +44,15 @@ RUN usermod -p "$(openssl passwd -6 huggingrun)" root
44
  RUN mkdir -p /data
45
 
46
  # nginx + bridge + startup scripts
47
- # nginx.conf goes to /scripts/ (outside PERSIST_DIRS) to survive restore
48
  COPY ubuntu-server/nginx.conf /etc/nginx/nginx.conf
49
- COPY ubuntu-server/nginx.conf /scripts/nginx.conf
50
  COPY ubuntu-server/ws-ssh-bridge.py /opt/ws-ssh-bridge.py
51
  COPY ubuntu-server/git_sync_daemon.py /opt/git_sync_daemon.py
52
  COPY ubuntu-server/log_streamer.py /opt/log_streamer.py
53
  COPY ubuntu-server/start-server.sh /opt/start-server.sh
54
  COPY scripts /scripts
55
- RUN chmod +x /scripts/entrypoint.sh /scripts/entrypoint_wrapper.py /opt/start-server.sh
 
 
56
 
57
  ENV PERSIST_PATH=/data
58
  ENV PYTHONUNBUFFERED=1
 
44
  RUN mkdir -p /data
45
 
46
  # nginx + bridge + startup scripts
 
47
  COPY ubuntu-server/nginx.conf /etc/nginx/nginx.conf
 
48
  COPY ubuntu-server/ws-ssh-bridge.py /opt/ws-ssh-bridge.py
49
  COPY ubuntu-server/git_sync_daemon.py /opt/git_sync_daemon.py
50
  COPY ubuntu-server/log_streamer.py /opt/log_streamer.py
51
  COPY ubuntu-server/start-server.sh /opt/start-server.sh
52
  COPY scripts /scripts
53
+ # nginx.conf AFTER scripts copy (COPY scripts replaces the dir)
54
+ COPY ubuntu-server/nginx.conf /scripts/nginx.conf
55
+ RUN chmod +x /scripts/entrypoint.sh /opt/start-server.sh
56
 
57
  ENV PERSIST_PATH=/data
58
  ENV PYTHONUNBUFFERED=1