forked from QuantConnect/Lean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (30 loc) · 1.21 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
#
# 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 /root/Lean && \
# cd /root/Lean
# RUN \
# sed -i 's/4.5/4.0/' Algorithm.VisualBasic/QuantConnect.Algorithm.VisualBasic.vbproj && \
# wget https://nuget.org/nuget.exe && \
# mono nuget.exe restore QuantConnect.Lean.sln -NonInteractive && \
# xbuild /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 DockerfileLeanAlgorithm .
# docker run -v "(absolute to your data folder):/root/Lean/Data" quantconnect/lean:algorithm