forked from oliverw/miningcore
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DockerFile modification
- Loading branch information
ceedii
committed
Dec 30, 2023
1 parent
540da0e
commit c3d6ae6
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# install install-dependencies | ||
sudo apt-get update; \ | ||
sudo apt-get -y install wget | ||
|
||
# add dotnet repo | ||
sudo wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
sudo dpkg -i packages-microsoft-prod.deb | ||
rm packages-microsoft-prod.deb | ||
|
||
# install dev-dependencies | ||
sudo apt-get update; \ | ||
sudo apt-get -y install dotnet-sdk-6.0 git cmake ninja-build build-essential libssl-dev pkg-config libboost-all-dev libsodium-dev libzmq5-dev libgmp-dev | ||
|
||
(cd src/Miningcore && \ | ||
BUILDIR=${1:-../../build} && \ | ||
echo "Building into $BUILDIR" && \ | ||
dotnet publish -c Release --framework net6.0 -o $BUILDIR) |