{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/fig/issues/797","labels_url":"https://api.github.com/repos/docker/fig/issues/797/labels{/name}","comments_url":"https://api.github.com/repos/docker/fig/issues/797/comments","events_url":"https://api.github.com/repos/docker/fig/issues/797/events","html_url":"https://github.com/docker/fig/issues/797","id":53370365,"number":797,"title":"2 dockerfiles: one for production and one for development?","user":{"login":"olalonde","id":416585,"avatar_url":"https://avatars.githubusercontent.com/u/416585?v=3","gravatar_id":"","url":"https://api.github.com/users/olalonde","html_url":"https://github.com/olalonde","followers_url":"https://api.github.com/users/olalonde/followers","following_url":"https://api.github.com/users/olalonde/following{/other_user}","gists_url":"https://api.github.com/users/olalonde/gists{/gist_id}","starred_url":"https://api.github.com/users/olalonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olalonde/subscriptions","organizations_url":"https://api.github.com/users/olalonde/orgs","repos_url":"https://api.github.com/users/olalonde/repos","events_url":"https://api.github.com/users/olalonde/events{/privacy}","received_events_url":"https://api.github.com/users/olalonde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-05T07:13:33Z","updated_at":"2015-01-07T01:28:38Z","closed_at":"2015-01-07T01:28:38Z","body":"I have the following problem. My web front end uses a node.js process during development (enabling live reload, etc.) and in production, I only serve a pre-build `dist/` folder using Nginx.\r\n\r\nWhat would be the best way to handle this? I have come up with 2 options. Have a different Dockerfile for production and development. In that case, my question is how can I specify which one to use in my `fig.yml` file? The other option would be to use two different virtual hosts in my nginx config but in that case, the development domain would still be accessible in production if someone else knows it. Another solution would be to tell Nginx which config file to use based on an environment variable, but I'm not sure how to do that."}}