From 3d49a00edb79b737a751311ec4343493fd9bb31e Mon Sep 17 00:00:00 2001 From: Divyansh Bhardwaj <87605149+Dbhardwaj99@users.noreply.github.com> Date: Wed, 19 Jan 2022 16:20:12 +0530 Subject: [PATCH] Added Virtual Environment to flo-token-tracking and flo-api --- .gitignore | 3 +++ .idea/.gitignore | 3 +++ Dockerfile | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b358f20 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ + +*.iml +*.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Dockerfile b/Dockerfile index 15e1c4f..77faeb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,7 @@ WORKDIR ../ # Setup of Flo Token Tracker RUN git clone https://github.com/vivekteega/ftt-docker +RUN apt install python3.8-venv WORKDIR ftt-docker #RUN python3.9 -m venv ftt #RUN . ftt/bin/activate @@ -35,6 +36,8 @@ RUN python3 -m pip install chardet RUN python3 -m pip install arrow RUN python3 -m pip install socketio RUN python3 -m pip install requests +RUN python3 -m venv env +RUN source env/bin/activate RUN sed -i "s|chardet==4.0.0|chardet|g" /ftt-docker/requirements.txt RUN touch config.ini RUN echo "[DEFAULT] \n\ @@ -52,6 +55,8 @@ RUN echo "committeeAddressList = ['oVwmQnQGtXjRpP7dxJeiRGd5azCrJiB6Ka'] \n\ RUN git clone https://github.com/ranchimall/ranchimallflo-api WORKDIR ranchimallflo-api RUN python3 -m pip install --upgrade pip setuptools wheel +RUN python3 -m venv env +RUN source env/bin/activate RUN python3 -m pip install -r requirements.txt RUN pip3 install apscheduler RUN touch config.py