Shakshi3104 commited on
Commit
8e28da3
·
1 Parent(s): 5623ffc

[add] Add Dockerfile and compose.yml

Browse files
Files changed (2) hide show
  1. Dockerfile +21 -0
  2. compose.yml +12 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ # copy requirements
4
+ COPY requirements.txt requirements.txt
5
+
6
+ # install
7
+ RUN apt-get update && apt-get clean;
8
+ RUN apt-get install -y libgl1-mesa-dev
9
+ RUN apt-get install -y libssl-dev
10
+
11
+ RUN pip install --upgrade pip
12
+ RUN pip install -r requirements.txt
13
+
14
+ COPY .env .env
15
+ COPY model/ model/
16
+ # COPY view/ view/
17
+ COPY app.py app.py
18
+
19
+ ENV PYTHONUNBUFFERED 1
20
+
21
+ CMD gradio app.py
compose.yml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ cobalt:
3
+ container_name: cobalt-hybrid-search
4
+ build:
5
+ context: .
6
+ dockerfile: Dockerfile
7
+ ports:
8
+ - "7860:7860"
9
+ volumes:
10
+ - type: bind
11
+ source: ./model
12
+ target: /model