md-vasim commited on
Commit
24d12f1
·
1 Parent(s): 9049066

docker image file

Browse files
Files changed (2) hide show
  1. Dockerfile +22 -0
  2. requirements.txt +0 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim-buster
2
+
3
+ WORKDIR /app
4
+
5
+ COPY . /app
6
+
7
+ # ENV HNSWLIB_NO_NATIVE=1
8
+
9
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
+
11
+ RUN useradd -m -u 1000 user
12
+
13
+ USER user
14
+
15
+ ENV HOME=/home/user \
16
+ PATH=/home/user/.local/bin:$PATH
17
+
18
+ WORKDIR $HOME/app
19
+
20
+ COPY --chown=user . $HOME/app
21
+
22
+ CMD ["gradio", "app.py"]
requirements.txt ADDED
File without changes