docker2sh

Convert Dockerfiles into shell scripts
git clone https://git.parazyd.org/docker2sh
Log | Files | Refs | README | LICENSE

commit 41faa73154498002471b9f2f8bebac3da1a26faa
parent e884e9bca6c175ce8bb25dfa965018230f82adff
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 20 Nov 2019 15:58:53 +0100

Escape variables in ENV parse.

Diffstat:
Mdocker2sh.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/docker2sh.py b/docker2sh.py @@ -80,6 +80,7 @@ def parse_instruction(inst, dfile=None): cmds.remove(ins) if '=' not in val: val = val.replace(' ', '=', 1) + val = val.replace('$', '\\$') return 'export %s\n' % val if ins == 'RUN':