GGUF
conversational
rexprimematrix commited on
Commit
79c98ca
·
verified ·
1 Parent(s): a6396ab

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python 3.9 image use kar rahe hain
2
+ FROM python:3.9
3
+
4
+ # Hugging Face permissions setup
5
+ RUN useradd -m -u 1000 user
6
+ USER user
7
+ ENV PATH="/home/user/.local/bin:$PATH"
8
+
9
+ WORKDIR /app
10
+
11
+ # Requirements copy karke install karo
12
+ COPY --chown=user requirements.txt requirements.txt
13
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
+
15
+ # Baaki code (brain.py aur model) copy karo
16
+ COPY --chown=user . /app
17
+
18
+ # Flask ko port 7860 par expose karo
19
+ EXPOSE 7860
20
+
21
+ # Command to run the brain
22
+ CMD ["python", "brain.py"]