1 | const parser = require('docker-file-parser')
|
2 | const examples = []
|
3 |
|
4 | examples.push('FROM ubuntu:latest\n' +
|
5 | 'ADD /foo\n' +
|
6 | 'RUN node index.js'
|
7 | )
|
8 |
|
9 | examples.push('COMPONENT bort function\n' +
|
10 | 'FROM ubuntu:latest\n' +
|
11 | 'ADD /foo\n' +
|
12 | 'RUN node index.js'
|
13 | )
|
14 |
|
15 | examples.forEach((example) => {
|
16 | console.log(parser.parse(example))
|
17 | })
|