From 16c74c4aa5dd9f872b63bde81efee2c3e3236d2e Mon Sep 17 00:00:00 2001 From: Charlie Date: Sun, 29 Sep 2024 12:33:03 -0700 Subject: [PATCH] Dockerized --- Dockerfile | 6 ++++++ indicators.py | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..635f653 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:alpine3.19 +WORKDIR /app +COPY . /app +RUN pip install -U pip && pip install -r requirements.txt +EXPOSE 8050 +CMD ["python", "./indicators.py"] diff --git a/indicators.py b/indicators.py index 4a2f8e1..49f25ad 100644 --- a/indicators.py +++ b/indicators.py @@ -39,6 +39,8 @@ from flask_caching import Cache from dash.exceptions import PreventUpdate import yahoo_fin.stock_info as si +pd.options.mode.chained_assignment = None # default='warn' + # def fill_missing_data(df): # df.ffill(inplace=True) # df.bfilln(inplace=True)