forked from lab/TPM
parent
645fb069fd
commit
412ffce2b4
10 changed files with 122 additions and 63 deletions
@ -0,0 +1,10 @@ |
|||||||
|
FROM python:3.9.6 |
||||||
|
WORKDIR /flask |
||||||
|
ADD . /flask/data_init |
||||||
|
RUN apt-get update |
||||||
|
#RUN apt install nano |
||||||
|
RUN pip install --upgrade pip |
||||||
|
RUN pip3 install -r ./data_init/requirements_data.txt |
||||||
|
CMD bash -c "python data_init/data_init_tw_v0.py && python data_init/data_init_us_v0.py" |
||||||
|
|
||||||
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,15 @@ |
|||||||
|
import os |
||||||
|
import json |
||||||
|
dir_path = os.path.dirname(os.path.realpath(__file__)) |
||||||
|
dir_abspath = os.path.abspath(dir_path) |
||||||
|
print("Abs Path : ",dir_abspath) |
||||||
|
dir_list = os.listdir(dir_path) |
||||||
|
|
||||||
|
print("Files and directories in '", dir_path, "' :") |
||||||
|
|
||||||
|
# prints all files |
||||||
|
print(dir_list) |
||||||
|
with open('/flask/data_init/assets_us.json') as f: |
||||||
|
data_tw = json.load(f) |
||||||
|
print(data_tw) |
||||||
|
|
||||||
@ -0,0 +1,6 @@ |
|||||||
|
pandas==1.5.3 |
||||||
|
psycopg2==2.9.5 |
||||||
|
requests==2.28.2 |
||||||
|
SQLAlchemy==2.0.4 |
||||||
|
yfinance==0.2.22 |
||||||
|
tqdm==4.62.3 |
||||||
Loading…
Reference in new issue