Skip to content

Commit

Permalink
chore: fix entrypoint cp file not found when no scripts in the folder
Browse files Browse the repository at this point in the history
- Modify the docker entrypoint to copy scripts from `/data/scripts/.` instead of `/data/scripts/*`

Signed-off-by: 陳鈞 <jim60105@gmail.com>
  • Loading branch information
jim60105 committed Apr 8, 2024
1 parent f6ef969 commit ca0e5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ USER $UID
STOPSIGNAL SIGINT

# Use dumb-init as PID 1 to handle signals properly
ENTRYPOINT [ "dumb-init", "--", "/bin/sh", "-c", "cp -rfs /data/scripts/* /app/scripts/ && python3 /app/launch.py --listen --port 7860 --data-dir /data \"$@\"", "--" ]
ENTRYPOINT [ "dumb-init", "--", "/bin/sh", "-c", "cp -rfs /data/scripts/. /app/scripts/ && python3 /app/launch.py --listen --port 7860 --data-dir /data \"$@\"", "--" ]

CMD [ "--xformers", "--api", "--allow-code" ]

Expand Down

0 comments on commit ca0e5ca

Please sign in to comment.