Spaces:
Sleeping
Sleeping
SushantGautam
commited on
Commit
•
30960df
1
Parent(s):
0eaee76
dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
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 |
+
RUN chmod -R 777 /code/
|
20 |
+
|
21 |
+
CMD ["chainlit", "run", "-h", "app.py", "--port", "7860"]
|
22 |
+
ENV INTERACTIVE_OPENAI_KEY=1
|