{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13774","labels_url":"https://api.github.com/repos/docker/docker/issues/13774/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13774/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13774/events","html_url":"https://github.com/docker/docker/issues/13774","id":85602909,"number":13774,"title":"Provide TO syntax to the Dockerfile","user":{"login":"warden","id":521838,"avatar_url":"https://avatars.githubusercontent.com/u/521838?v=3","gravatar_id":"","url":"https://api.github.com/users/warden","html_url":"https://github.com/warden","followers_url":"https://api.github.com/users/warden/followers","following_url":"https://api.github.com/users/warden/following{/other_user}","gists_url":"https://api.github.com/users/warden/gists{/gist_id}","starred_url":"https://api.github.com/users/warden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warden/subscriptions","organizations_url":"https://api.github.com/users/warden/orgs","repos_url":"https://api.github.com/users/warden/repos","events_url":"https://api.github.com/users/warden/events{/privacy}","received_events_url":"https://api.github.com/users/warden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-05T18:44:18Z","updated_at":"2015-06-06T22:12:17Z","closed_at":"2015-06-06T22:12:17Z","body":"Currently building an arbitrary Dockerile results in an image that does not have a repository nor a tag name.\r\nIt would be useful to have a syntax similar to FROM that is defining the base image, to actualy provide the *default* repository and tag name, so that they do not have to be passed with -t flag to the docker build command.\r\nThis will make it easier to create new images from new versions of software, just by bumping some number that will be for both, installing the actual package and for the tag name of the docker build.\r\n\r\nExample:\r\n\r\n```\r\nFROM repository/base-linux:latest\r\nENV PKG_VERSION 2.3.4\r\nTO repository/jenkins:$PKG_VERSION\r\n...\r\n...\r\nRUN apt-get install jenkins=$PKG_VERSION\r\n\r\n```\r\n\r\n"}}