Skip to content

Commit

Permalink
FIX: using anaconda image
Browse files Browse the repository at this point in the history
  • Loading branch information
wegamekinglc committed Jul 3, 2021
1 parent 9b7a23b commit 805ca78
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM wegamekinglc/python:3.7-slim-stretch-aliyun
FROM continuumio/anaconda3:2021.05

LABEL maintainer = "[email protected]"
RUN apt-get update && apt-get install build-essential default-libmysqlclient-dev -y
RUN apt-get update && apt-get install build-essential default-libmysqlclient-dev coinor-cbc coinor-libcbc-dev -y
ENV COIN_INSTALL_DIR /usr

WORKDIR /
COPY ./requirements.txt /requirements.txt
RUN pip install numpy cython -i https://pypi.douban.com/simple
COPY ./requirements_docker.txt /requirements.txt
RUN pip install -r /requirements.txt -i https://pypi.douban.com/simple
RUN pip install finance-python>=0.8.1 -i https://pypi.douban.com/simple

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
arrow
cython
cvxpy
cvxopt
cython
deprecated
ecos
finance-python
Expand Down
11 changes: 11 additions & 0 deletions requirements_docker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
arrow
cvxpy
cvxopt
deprecated
ecos
mysqlclient
portfolio-optimizer
psycopg2-binary
simpleutils
xgboost
xlsxwriter

0 comments on commit 805ca78

Please sign in to comment.