Spaces:
Sleeping
Sleeping
빌드할 때만 root 사용자로 설치
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -33,9 +33,13 @@ COPY ./llama_cpp_python-0.3.11-cp312-cp312-linux_x86_64.whl .
|
|
| 33 |
|
| 34 |
# 8. llama-cpp-python을 wheel 파일로 설치 후 나머지 라이브러리 설치 (가상환경 내 pip 사용)
|
| 35 |
# RUN pip install --no-cache-dir ./llama_cpp_python-0.3.11-cp39-cp39-linux_x86_64.whl
|
|
|
|
| 36 |
RUN pip install --no-cache-dir ./llama_cpp_python-0.3.11-cp312-cp312-linux_x86_64.whl
|
| 37 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 38 |
|
|
|
|
|
|
|
|
|
|
| 39 |
# 9. 나머지 모든 소스 코드를 작업 폴더에 복사
|
| 40 |
COPY . /app
|
| 41 |
|
|
|
|
| 33 |
|
| 34 |
# 8. llama-cpp-python을 wheel 파일로 설치 후 나머지 라이브러리 설치 (가상환경 내 pip 사용)
|
| 35 |
# RUN pip install --no-cache-dir ./llama_cpp_python-0.3.11-cp39-cp39-linux_x86_64.whl
|
| 36 |
+
USER root
|
| 37 |
RUN pip install --no-cache-dir ./llama_cpp_python-0.3.11-cp312-cp312-linux_x86_64.whl
|
| 38 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 39 |
|
| 40 |
+
# 다시 user로 변경
|
| 41 |
+
USER user
|
| 42 |
+
|
| 43 |
# 9. 나머지 모든 소스 코드를 작업 폴더에 복사
|
| 44 |
COPY . /app
|
| 45 |
|