Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
FROM python:3.9
|
2 |
-
|
3 |
-
RUN useradd -m -u 1000 user
|
4 |
-
USER user
|
5 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
6 |
-
WORKDIR /app
|
7 |
RUN apt-get update && apt-get install -y \
|
8 |
build-essential \
|
9 |
libopenblas-dev \
|
10 |
libomp-dev \
|
11 |
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
RUN pip --no-cache-dir install fastapi uvicorn[standard]==0.17.* transformers torch accelerate
|
14 |
run CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
|
|
|
1 |
FROM python:3.9
|
|
|
|
|
|
|
|
|
|
|
2 |
RUN apt-get update && apt-get install -y \
|
3 |
build-essential \
|
4 |
libopenblas-dev \
|
5 |
libomp-dev \
|
6 |
&& rm -rf /var/lib/apt/lists/* \
|
7 |
+
RUN useradd -m -u 1000 user
|
8 |
+
USER user
|
9 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
10 |
+
WORKDIR /app
|
11 |
+
|
12 |
|
13 |
RUN pip --no-cache-dir install fastapi uvicorn[standard]==0.17.* transformers torch accelerate
|
14 |
run CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
|