mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-08 12:49:36 +00:00
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:
13
generate_dockerfiles.sh
Executable file
13
generate_dockerfiles.sh
Executable 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
|
Reference in New Issue
Block a user