You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use an official lightweight Python runtime as a parent image
FROM python:3.8-slim
# Set the working directory to /app
WORKDIR /app
# Copy only the requirements file, to cache the dependencies
COPY requirements.txt /app/
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple wtpy
# Copy the rest of the application code
COPY . /app
# Make port 80 available to the world outside this container
EXPOSE 80
# Define environment variable (example)
ENV NAME World
ENV PYTHONPATH /app
# Set the working directory to /app/cta_fut_bt , so `sys.path.append('../Strategies')` works
WORKDIR /demos/ctp_loader
# Run app.py when the container launches
CMD ["python", "./run.py"]
在尝试运行 demo 时这样报错:
我已经
pip install wtpy
安装了 0.9.8, 并pip install -r ./requirements.txt
( requirements.txt 从 wtpy 仓库复制而来)我是第一次尝试安装使用,请问这个问题如何解决?
The text was updated successfully, but these errors were encountered: