Spaces:
Runtime error
Runtime error
Moving to alpine
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
-
# Loading base. I'm using
|
| 2 |
-
FROM python:3.11.
|
| 3 |
|
| 4 |
# Just for sure everything will be fine.
|
|
|
|
| 5 |
USER root
|
| 6 |
|
| 7 |
# Installing gcc compiler and main library.
|
| 8 |
-
RUN
|
| 9 |
RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
|
| 10 |
|
| 11 |
# Copying files into folder and making it working dir.
|
|
|
|
| 1 |
+
# Loading base. I'm using Alpine, u can use whatever u want.
|
| 2 |
+
FROM python:3.11.9-alpine3.20
|
| 3 |
|
| 4 |
# Just for sure everything will be fine.
|
| 5 |
+
# ALSO ITS BAD! But since its docker, probably.. screw it?
|
| 6 |
USER root
|
| 7 |
|
| 8 |
# Installing gcc compiler and main library.
|
| 9 |
+
RUN apk update && apk add wget build-base -y
|
| 10 |
RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
|
| 11 |
|
| 12 |
# Copying files into folder and making it working dir.
|