-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
24 lines (18 loc) · 859 Bytes
/
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
FROM microsoft/dotnet:sdk
MAINTAINER oliver@weichhold.com
# install build-tools
RUN apt-get update -y && apt-get -y install git cmake build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev
# build
RUN cd /tmp && git clone https://github.com/coinfoundry/miningcore && cd miningcore/src/MiningCore && \
chmod +x ./linux-build.sh && ./linux-build.sh && mkdir /dotnetapp && cp -r ../../build/* /dotnetapp
WORKDIR /dotnetapp
# cleanup build artifacts
RUN apt-get --purge remove -y git cmake build-essential libssl-dev pkg-config libboost-all-dev
RUN apt-get autoremove -y && apt-get clean autoclean
RUN apt-get install -y libboost-system1.62.0 libboost-date-time1.62.0 libssl1.0.2
RUN rm -rf /var/lib/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
# API
EXPOSE 4000
# Stratum Ports
EXPOSE 3032-3199
ENTRYPOINT dotnet MiningCore.dll -c /config.json