consciouslab commited on
Commit
b03bc56
1 Parent(s): 148e950

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile.txt +21 -0
  2. git_sync.py +2 -0
  3. requirements.txt +6 -0
Dockerfile.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.8.9
2
+
3
+ WORKDIR /app
4
+
5
+ COPY ./requirements.txt /app/requirements.txt
6
+ RUN pip3 install --no-cache-dir -r /app/requirements.txt
7
+
8
+ # User
9
+ RUN useradd -m -u 1000 user
10
+ USER user
11
+ ENV HOME /home/user
12
+ ENV PATH $HOME/.local/bin:$PATH
13
+
14
+ WORKDIR $HOME
15
+ RUN mkdir app
16
+ WORKDIR $HOME/app
17
+ COPY . $HOME/app
18
+
19
+ EXPOSE 8501
20
+
21
+ CMD ["/bin/bash", "-c", "python git_sync.py;streamlit run app.py --server.headless true --server.enableCORS false --server.enableXsrfProtection false --server.fileWatcherType none"]
git_sync.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import os
2
+ os.system(f'git clone https://{os.environ["github_token"]}@github.com/ConsciousLabOrg/caster.git tmp && mv tmp/.git . && rm -rf tmp && git reset --hard')
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ streamlit
2
+ pandas
3
+ matplotlib
4
+ numpy
5
+ darts
6
+ scikit-learn