sparse-intern-71089
10/18/2021, 3:32 PMbillowy-army-68599
env
to your dockerfile too?sticky-airline-40485
10/18/2021, 10:12 PMENV
to the Dockerfile. Is that the only way to set them in Pulumi?billowy-army-68599
sticky-airline-40485
10/19/2021, 10:42 AMargs
,
const image = repo.buildAndPushImage({
context: '..', dockerfile: '../App/Dockerfile', args: {
'ARG_ASPNETCORE_ENVIRONMENT': 'Dev',
[...]
}
})
And then then binding them in the Dockerfile
FROM base AS final
ARG ARG_ASPNETCORE_ENVIRONMENT
ENV ASPNETCORE_ENVIRONMENT=$ARG_ASPNETCORE_ENVIRONMENT
[...]
Thank you again for the guidance!