Closed ikuru9 closed 6 years ago
Change Dockerfile to the following and then build it:
FROM python:3
ADD app/* /
ADD trader.py /
RUN pip install requests
CMD [ "python", "./trader.py" ]
Rename ./db/orders.sample.db
to ./db/orders.db
Run in container with database mapping
docker run -t -i -v $(pwd)/db/orders.db:/db/orders.db trader
Go the same issue :(
Traceback (most recent call last):
File "./trader.py", line 9, in
from Trading import Trading
ModuleNotFoundError: No module named 'Trading'