OrbitMC commited on
Commit
25f6ab2
·
verified ·
1 Parent(s): eb4f3c5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -12
Dockerfile CHANGED
@@ -1,26 +1,16 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system dependencies for build-essential (needed for some python libs)
4
- RUN apt-get update && apt-get install -y \
5
- build-essential \
6
- git \
7
- && rm -rf /var/lib/apt/lists/*
8
 
9
- # Install Hugging Face stack and Search
10
- # bitsandbytes + accelerate allows running the model on lower RAM
11
  RUN pip install --no-cache-dir \
12
  torch \
13
  transformers \
14
  accelerate \
15
- bitsandbytes \
16
- gradio \
17
  duckduckgo-search \
18
- sentencepiece
19
 
20
  WORKDIR /app
21
  COPY app.py .
22
 
23
- # Expose Gradio port
24
  EXPOSE 7860
25
-
26
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/*
 
 
 
 
4
 
 
 
5
  RUN pip install --no-cache-dir \
6
  torch \
7
  transformers \
8
  accelerate \
 
 
9
  duckduckgo-search \
10
+ gradio
11
 
12
  WORKDIR /app
13
  COPY app.py .
14
 
 
15
  EXPOSE 7860
 
16
  CMD ["python", "app.py"]