forked from QuantConnect/Lean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (31 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# LEAN Algorithm Docker Container November-2016
# Cross platform deployment for multiple brokerages
#
FROM quantconnect/lean:foundation
MAINTAINER QuantConnect <[email protected]>
#################################
# Option 1: Download from Master
# RUN \
# wget https://github.com/QuantConnect/Lean/archive/master.zip && \
# unzip master.zip -d /root/ && \
# mv /root/Lean-master /root/Lean
# RUN \
# cd /root/Lean && \
# sed -i 's/4.5/4.0/' Algorithm.VisualBasic/QuantConnect.Algorithm.VisualBasic.vbproj && \
# wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe && \
# mono nuget.exe restore QuantConnect.Lean.sln -NonInteractive && \
# msbuild QuantConnect.Lean.sln /property:Configuration=Release && \
# cd /root/Lean/Launcher/bin/Release/
#################################
################################
# Option 2: Run Local Binaries:
COPY ./Launcher/bin/Release /root/Lean/Launcher/bin/Release
#################################
# Finally.
WORKDIR /root/Lean/Launcher/bin/Release
CMD [ "mono", "QuantConnect.Lean.Launcher.exe"] # Run app
# Usage:
# docker build -t quantconnect/lean:foundation -f DockerfileLeanFoundation .
# docker build -t quantconnect/lean:algorithm -f Dockerfile .
# docker run -v "(absolute to your data folder):/root/Lean/Data" quantconnect/lean:algorithm