aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/docker_build.sh
blob: 7400bd4c367723260478200f3b893f3175d9a1d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env sh

set -e

docker build -t dexonfoundation/dsolc:build -f scripts/Dockerfile .
tmp_container=$(docker create dexonfoundation/dsolc:build sh)
mkdir -p upload
docker cp ${tmp_container}:/usr/bin/solc upload/solc-static-linux

# Alpine image
docker build -t dexonfoundation/dsolc:build-alpine -f scripts/Dockerfile_alpine .