Docker: use a entrypoint script (#1227)

In favor of `/etc/bash.bashrc`, which is only read for interactive
shells.
This commit is contained in:
Kleis Auke Wolthuizen
2023-07-06 16:44:01 +02:00
committed by GitHub
parent 3bde060365
commit e28e47659c
5 changed files with 18 additions and 10 deletions

View File

@@ -17,8 +17,8 @@ build: Dockerfile .TEST
test: test_dockerimage.sh .TEST
# test as non-root
docker run --rm -u `id -u`:`id -g` -w /emsdk/docker --net=host ${image_name}:${version} \
bash $<
# test fallback env variables by overriding the entrypoint
docker run --rm -u `id -u`:`id -g` -w /emsdk/docker --net=host --entrypoint /bin/bash ${image_name}:${version} $<
push: .TEST
docker push ${image_name}:${version}