ilaa-chenjeri-15 commited on
Commit
b5100de
·
1 Parent(s): 6fea6fd

Update Dockerfile and requirements.txt

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -9
  2. requirements.txt +2 -0
Dockerfile CHANGED
@@ -7,13 +7,6 @@ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
10
- EXPOSE 5000
11
 
12
- CMD ["bash", "-c", "\
13
- if [ ! -d embeddings ]; then \
14
- echo 'Running setup...'; \
15
- python src/ingestion/fetch_docs.py && \
16
- python src/ingestion/chunk.py && \
17
- python src/retrieval/embed_store.py; \
18
- fi && \
19
- python app.py"]
 
7
 
8
  COPY . .
9
 
10
+ EXPOSE 7860
11
 
12
+ CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]
 
 
 
 
 
 
 
requirements.txt CHANGED
@@ -9,3 +9,5 @@ umap-learn
9
  requests
10
  beautifulsoup4
11
  tqdm
 
 
 
9
  requests
10
  beautifulsoup4
11
  tqdm
12
+ gunicorn
13
+ python-dotenv