{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/ghost/issues/2","labels_url":"https://api.github.com/repos/docker-library/ghost/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/ghost/issues/2/comments","events_url":"https://api.github.com/repos/docker-library/ghost/issues/2/events","html_url":"https://github.com/docker-library/ghost/issues/2","id":60192280,"number":2,"title":"How to start Ghost in production mode with this repo/image?","user":{"login":"JoSpalding","id":10931029,"avatar_url":"https://avatars.githubusercontent.com/u/10931029?v=3","gravatar_id":"","url":"https://api.github.com/users/JoSpalding","html_url":"https://github.com/JoSpalding","followers_url":"https://api.github.com/users/JoSpalding/followers","following_url":"https://api.github.com/users/JoSpalding/following{/other_user}","gists_url":"https://api.github.com/users/JoSpalding/gists{/gist_id}","starred_url":"https://api.github.com/users/JoSpalding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoSpalding/subscriptions","organizations_url":"https://api.github.com/users/JoSpalding/orgs","repos_url":"https://api.github.com/users/JoSpalding/repos","events_url":"https://api.github.com/users/JoSpalding/events{/privacy}","received_events_url":"https://api.github.com/users/JoSpalding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-07T05:43:00Z","updated_at":"2015-03-13T00:31:14Z","closed_at":null,"body":"I have tried the following with no success:\r\n\r\n- Override CMD from dockerfile on 'docker run' (https://docs.docker.com/reference/run/#cmd-default-command-or-options)\r\n- Use '-e NODE_ENV=production' on 'docker run'\r\n- Create a fork of this repository, updated the dockerfile with 'CMD [\"node\", \"start\", \"--production\"]', created an automated build on Docker Hub and all.\r\n\r\nHere is the error when trying to 'docker run' the image:\r\n\r\n\\> ghost@0.5.9 start /usr/src/ghost\r\n\\> node index\r\n\r\nERROR: Unable to access Ghost's content path:\r\n EACCES, permission denied '/usr/src/ghost/content/apps/283e85be3ed7c1c0'\r\n\r\nCheck that the content path exists and file system permissions are correct.\r\nHelp and documentation can be found at http://support.ghost.org."},"comment":{"url":"https://api.github.com/repos/docker-library/ghost/issues/comments/78715841","html_url":"https://github.com/docker-library/ghost/issues/2#issuecomment-78715841","issue_url":"https://api.github.com/repos/docker-library/ghost/issues/2","id":78715841,"user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T00:31:14Z","updated_at":"2015-03-13T00:31:14Z","body":"When I was doing the initial pass at this image, I played a little with production mode but in my own testing found that it required some hand-tweaking of the configuration file (which is stored in the database directory `/var/lib/ghost` -- https://github.com/docker-library/ghost/blob/4ee388e3ff8d7251cfe3f0ac062efb68a0cd2835/docker-entrypoint.sh#L11).\r\n\r\nhttp://support.ghost.org/config/#about-environments has some good information about both modes and why development mode is the default.\r\n\r\nOf course, if there are things we can do in the image to make production mode simpler to use, we're definitely open to suggestions. :+1:"}}