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

set -e

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

# Alpine image
docker build -t ethereum/solc:build-alpine -f scripts/Dockerfile_alpine .