imperialwool commited on
Commit
d824d62
·
verified ·
1 Parent(s): 3f7c0d0

Moving to alpine

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,11 +1,12 @@
1
- # Loading base. I'm using Debian, u can use whatever u want.
2
- FROM python:3.11.5-slim-bookworm
3
 
4
  # Just for sure everything will be fine.
 
5
  USER root
6
 
7
  # Installing gcc compiler and main library.
8
- RUN apt update && apt install wget gcc cmake build-essential -y
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.