Add host network for building image (#514)
Without --network host It's impossible to build images
This commit is contained in:
committed by
GitHub
parent
6b0d151917
commit
ede26f1709
@@ -11,7 +11,7 @@ ifndef version
|
||||
endif
|
||||
|
||||
build: .TEST
|
||||
docker build --build-arg=EMSCRIPTEN_VERSION=${version} --tag emscripten/emsdk:${version} .
|
||||
docker build --network host --build-arg=EMSCRIPTEN_VERSION=${version} --tag emscripten/emsdk:${version} .
|
||||
|
||||
push: .TEST
|
||||
docker push emscripten/emsdk:${version}
|
||||
|
||||
@@ -59,6 +59,7 @@ This step will build Dockerfile as given tag on local machine
|
||||
```bash
|
||||
# using docker
|
||||
docker build \
|
||||
--network host \
|
||||
--build-arg=EMSCRIPTEN_VERSION=1.38.43-upstream \
|
||||
--tag emscripten/emsdk:1.38.43-upstream \
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user