From 314f791e0ecd29ec385c5139f2e160b8e9045de3 Mon Sep 17 00:00:00 2001 From: chendi Date: Thu, 18 Jul 2024 03:15:54 +0000 Subject: [PATCH] Fix urllib3 vuln --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a669679..8327737 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM continuumio/miniconda3 +FROM python:3.9 RUN wget https://github.com/dolthub/dolt/releases/download/v1.30.4/dolt-linux-amd64.tar.gz -O /tmp/dolt-linux-amd64.tar.gz && cd /tmp && tar -zxvf /tmp/dolt-linux-amd64.tar.gz && cp /tmp/dolt-linux-amd64/bin/dolt /usr/bin/ && rm -rf /tmp/* && dolt config --global --add user.email "dockeruser@na.com" && dolt config --global --add user.name "dockeruser" RUN apt update && apt install -y git psmisc zip gcc g++ @@ -6,9 +6,10 @@ RUN mkdir -p /dolt RUN mkdir -p /investment_data RUN cd /investment_data && git init && git pull https://github.com/chenditc/investment_data.git -RUN pip install numpy && pip install --upgrade cython \ +RUN pip install numpy==1.23.5 && pip install --upgrade cython \ && cd / && git clone https://github.com/microsoft/qlib.git \ - && cd /qlib/ && pip install . && pip install -r scripts/data_collector/yahoo/requirements.txt && rm scripts/data_collector/br_index/requirements.txt + && cd /qlib/ && pip install . && pip install -r scripts/data_collector/yahoo/requirements.txt +RUN rm -rf /qlib/ COPY ./requirements.txt /tmp/requirements.txt RUN pip install -r /tmp/requirements.txt COPY . /investment_data/