sticky-airline-40485
10/18/2021, 3:32 PMconst repo = new awsx.ecr.Repository("repo")
const image = repo.buildAndPushImage({
context: '..', dockerfile: '../App/Dockerfile', env: {
'ASPNETCORE_ENVIRONMENT': 'Dev',
'ASPNETCORE_URLS': 'https://+:443',
'ASPNETCORE_HTTPS_PORT': '443',
}
})
billowy-army-68599
10/18/2021, 4:55 PMenv
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
10/18/2021, 10:13 PMsticky-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!