trading-quant/Dockerfile
2023-06-08 22:23:41 +08:00

16 lines
583 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM python:3.8-slim
ENV PYTHONIOENCODING=utf-8
ENV TIME_ZONE Asia/Shanghai
RUN apt-get update && \
apt-get -y install gcc mono-mcs && \
rm -rf /var/lib/apt/lists/*
RUN python -m pip install --upgrade pip
RUN pip3 install --upgrade setuptools wheel
RUN pip3 install pep517
RUN pip3 install --upgrade pip
RUN pip3 install pyproject-toml
RUN pip3 install TA_Lib0.4.10cp35cp35mwin_amd64.whl
RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ binance binance_connector numpy requests schedule TA_Lib
WORKDIR /opt/
COPY ["./", "/opt/"]
CMD python3 -u main.py