I'm wanting to run "docker slim" to slim my images before they get uploaded to Azure.
I currently have the following code:
await connect(
async (client: Client) => {
const secret = client.setSecret('password', azure_password);
console.log('Importing files...');
const src = client.host().directory(project_dir).withoutDirectory('.git').withoutDirectory('./node_modules');
src.dockerBuild(dockerBuildOpts)
.withExec(["install slim command"])
.withRegistryAuth(registry_url, azure_user, secret)
.publish(registry_url + registry_loc + ':' + docker_image);
},
{ LogOutput: process.stderr },
);
Could someone point me in the correct direction of being able to run multiple commands where "install slim command" syntax is?
Thank you