12 lines
432 B
Docker
12 lines
432 B
Docker
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 -i https://mirrors.aliyun.com/pypi/simple/ binance binance_connector numpy requests schedule TA_Lib
|
|
WORKDIR /opt/
|
|
COPY ["./", "/opt/"]
|
|
CMD python3 -u main.py |