clash-linux commited on
Commit
20351a3
·
verified ·
1 Parent(s): e9e3f69

Upload 3 files

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -56,6 +56,8 @@ RUN chown -R node:node ${APP_HOME}
56
  # Copy the entrypoint script and set permissions
57
  COPY entrypoint.sh /home/node/app/entrypoint.sh
58
  RUN chown node:node /home/node/app/entrypoint.sh && chmod +x /home/node/app/entrypoint.sh
 
 
59
 
60
  # Switch to non-root user
61
  USER node
 
56
  # Copy the entrypoint script and set permissions
57
  COPY entrypoint.sh /home/node/app/entrypoint.sh
58
  RUN chown node:node /home/node/app/entrypoint.sh && chmod +x /home/node/app/entrypoint.sh
59
+ # Ensure the script uses Unix line endings (LF) instead of Windows (CRLF)
60
+ RUN sed -i 's/\r$//' /home/node/app/entrypoint.sh
61
 
62
  # Switch to non-root user
63
  USER node