Docker Community Forums

Share and learn in the Docker community.

How to change (Hosting environment: Production) with Dockerfile

docker

(Salahas) #1

Hi,

I Dockerized my .Net core application and it works fine but, whenever I check docker logs I get:
Hosting environment: Production
Which it causes me problems when I push the image to AWS ECS And I would like to change it using Dockerfile.
I tried to pass it as:
ENV ASPNETCORE_ENVIRONMENT= development
ENV ASPNETCORE_ENVIRONMENT= “development”
ENV “ASPNETCORE_ENVIRONMENT= development”
And i also tried
RUN -e “ASPNETCORE_ENVIRONMENT= development”

None of them has worked, Any ideas?