Spaces:
Sleeping
Sleeping
성현 김
commited on
Commit
·
9508f33
1
Parent(s):
8d1d1ef
Add uvicorn path check in Dockerfile and verify requirements
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -21,10 +21,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-
|
|
21 |
|
22 |
|
23 |
# 4. Python 의존성 설치
|
24 |
-
# requirements.txt 파일을 먼저 복사하여 Docker 레이어 캐싱 활용
|
25 |
COPY requirements.txt .
|
26 |
RUN pip install --no-cache-dir --upgrade pip && \
|
27 |
-
pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
28 |
|
29 |
# 5. 애플리케이션 코드 및 데이터 복사
|
30 |
# app 폴더 전체를 /app/app 으로 복사 (WORKDIR이 /app이므로 app/으로 복사됨)
|
|
|
21 |
|
22 |
|
23 |
# 4. Python 의존성 설치
|
|
|
24 |
COPY requirements.txt .
|
25 |
RUN pip install --no-cache-dir --upgrade pip && \
|
26 |
+
pip install --no-cache-dir -r requirements.txt && \
|
27 |
+
echo "--- Checking uvicorn and PATH ---" && \
|
28 |
+
which uvicorn && \
|
29 |
+
echo "PATH is: $PATH" && \
|
30 |
+
echo "--- End of check ---"
|
31 |
|
32 |
# 5. 애플리케이션 코드 및 데이터 복사
|
33 |
# app 폴더 전체를 /app/app 으로 복사 (WORKDIR이 /app이므로 app/으로 복사됨)
|