-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (33 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
42 lines (33 loc) · 1.31 KB
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
39
40
41
42
#############################################
# milss/tradercpp:1.0
# Build tradercpp
#############################################
FROM milss/tradercppbuild:v1.6 AS build_container
LABEL org.opencontainers.image.title="tradercpp" \
org.opencontainers.image.description="Container for running the trader.cpp app" \
org.opencontainers.image.source="https://github.com/milsanore/trader.cpp" \
maintainer="Milsanore <your@email>"
WORKDIR /tradercpp
COPY src/ ./src/
COPY tests/ ./tests/
COPY CMakeLists.txt .
COPY CMakePresets.json .
COPY conanfile.txt .
COPY conan.lock .
COPY Makefile .
RUN make init
RUN make build-debug
RUN make test
# ------------------------------------
COPY binance/fixconfig .
COPY binance/spot-fix-md.xml .
COPY binance/stunnel_prod.conf .
# COPY binance/keys/key.pem .
FROM alpine
WORKDIR /tradercpp
COPY --from=build_container /tradercpp/fixconfig /tradercpp/binance/fixconfig
COPY --from=build_container /tradercpp/spot-fix-md.xml /tradercpp/binance/spot-fix-md.xml
COPY --from=build_container /tradercpp/stunnel_prod.conf /tradercpp/binance/stunnel_prod.conf
# COPY --from=build_container /tradercpp/key.pem /tradercpp/binance/keys/key.pem
COPY --from=build_container /tradercpp/build/Debug/tradercpp /tradercpp/tradercpp
ENTRYPOINT ["/tradercpp/tradercpp"]