arbios commited on
Commit
5e1ef9e
·
verified ·
1 Parent(s): 0e9e15f

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ libgomp1 libcurl4 ca-certificates \
5
+ && rm -rf /var/lib/apt/lists/*
6
+
7
+ WORKDIR /app
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ COPY . .
12
+
13
+ # writable caches for the HF user; llama.cpp backend by default
14
+ ENV HOME=/tmp HF_HOME=/tmp/hf MINDLOCK_BACKEND=llamacpp PORT=7860
15
+ EXPOSE 7860
16
+ CMD ["python", "app.py"]