Spaces:
Sleeping

micymike commited on
Commit
bf927bb
·
verified ·
1 Parent(s): 7762995

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+
5
+ WORKDIR /app
6
+
7
+ COPY --chown=user ./requirements.txt requirements.txt
8
+
9
+ RUN pip install -r requirements.txt
10
+ RUN pip install --upgrade sentence_transformers
11
+ RUN pip install --upgrade langchain
12
+ RUN pip install -U langchain-community
13
+ RUN pip install -U langchain-huggingface
14
+ RUN pip install flask-cors
15
+
16
+ COPY --chown=user . /app
17
+
18
+ CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860"]