saish-shetty commited on
Commit
12a2df5
Β·
verified Β·
1 Parent(s): d99df04

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim-buster
2
+
3
+ # Update package lists
4
+ RUN apt-get update
5
+
6
+ # Install libstdc++ (if needed)
7
+ RUN apt-get install -y libstdc++6
8
+
9
+ ## Force install of bitsandbyes non-CUDA version
10
+ RUN pip install --force-reinstall 'https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_multi-backend-refactor/bitsandbytes-0.44.1.dev0-py3-none-manylinux_2_24_x86_64.whl'
11
+
12
+ # Copy requirements file
13
+ COPY requirements.txt .
14
+
15
+ # Install dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy app files
19
+ COPY . .
20
+
21
+ EXPOSE 7860
22
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
23
+
24
+ # Command to run the app
25
+ CMD ["python", "app.py"]