SushantGautam commited on
Commit
2636284
1 Parent(s): b6139f0

docker for chainlit

Browse files
Files changed (1) hide show
  1. Docker +22 -0
Docker ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+ RUN useradd -m -u 1000 user
3
+
4
+ WORKDIR /code
5
+
6
+ RUN pip install soccernet
7
+ RUN python -c "from SoccerNet.Downloader import SoccerNetDownloader; mySoccerNetDownloader = SoccerNetDownloader(LocalDirectory='data/dataset/SoccerNet'); mySoccerNetDownloader.downloadGames(files=['Labels-caption.json'], split=['train', 'valid', 'test']); mySoccerNetDownloader.downloadGames(files=['Labels-v2.json'], split=['train', 'valid', 'test'])"
8
+ RUN python src/database.py
9
+
10
+ COPY ./requirements.txt /code/requirements.txt
11
+
12
+
13
+ RUN pip install -r /code/requirements.txt
14
+
15
+ COPY . .
16
+
17
+ COPY ".env_demo" ".env"
18
+
19
+
20
+ RUN chmod -R 777 /code/
21
+
22
+ CMD ["chainlit", "run", "-h", "app.py", "--port", "7860"]