Fix Dockerfile build issue
This commit is contained in:
24
entrypoint.sh
Normal file
24
entrypoint.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e # 오류 발생 시 즉시 종료
|
||||
|
||||
# 실행 모드 설정
|
||||
case "$1" in
|
||||
data-gen)
|
||||
echo "데이터 생성 중..."
|
||||
bash /usr/src/app/making.sh
|
||||
;;
|
||||
evaluate)
|
||||
echo "평가 실행 중..."
|
||||
python /usr/src/app/main.py
|
||||
;;
|
||||
bash)
|
||||
echo "컨테이너 내부 접근"
|
||||
exec /bin/bash
|
||||
;;
|
||||
*)
|
||||
echo "기본 default 실행 모드: bash"
|
||||
echo "사용 가능한 실행 모드: data-gen | evaluate | bash"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user