MuangMuangE commited on
Commit
aed3858
·
verified ·
1 Parent(s): 7ce7a90

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y --no-install-recommends build-essential cmake && \
5
+ rm -rf /var/lib/apt/lists/*
6
+
7
+ ENV CMAKE_BUILD_PARALLEL_LEVEL=4
8
+ ENV CMAKE_ARGS="-DLLAMA_NATIVE=OFF"
9
+
10
+ RUN pip install --no-cache-dir "llama-cpp-python==0.3.16" && \
11
+ pip install --no-cache-dir gradio huggingface_hub
12
+
13
+ WORKDIR /app
14
+ COPY app.py .
15
+
16
+ EXPOSE 7860
17
+ CMD ["python", "app.py"]