Use a template for generating Dockerfiles

Since the firefox and chrome builds are similar except for the TLS
library used, it makes sense to unify their Dockerfiles. This commit
introduces a template Dockerfile from which both the build Dockerfiles
are generated using the simple 'mustache' template system.
This commit is contained in:
lwthiker
2022-03-09 11:01:44 +02:00
parent 446ab75876
commit d1dbfc89c5
4 changed files with 231 additions and 21 deletions

13
generate_dockerfiles.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
cat <<EOF | mustache - Dockerfile.template > chrome/Dockerfile
---
chrome: true
---
EOF
cat <<EOF | mustache - Dockerfile.template > firefox/Dockerfile
---
firefox: true
---
EOF