nlztrk commited on
Commit
4158169
1 Parent(s): 3213d01

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +21 -0
  2. git_sync.py +2 -0
  3. requirements.txt +4 -0
Dockerfile 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/unique-func/shell-cashflow-2023.git tmp && mv tmp/.git . && rm -rf tmp && git reset --hard')
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ pandas==1.5.3
2
+ numpy==1.24.3
3
+ streamlit==1.23.1
4
+ catboost==1.2