{"action":"created","comment":{"url":"https://api.github.com/repos/danielquinn/paperless/pulls/comments/156442776","pull_request_review_id":82919126,"id":156442776,"diff_hunk":"@@ -1,50 +1,41 @@\n-FROM python:3.5\n-MAINTAINER Pit Kleyersburg <pitkley@googlemail.com>\n-\n-# Install dependencies\n-RUN apt-get update \\\n-    && apt-get install -y --no-install-recommends \\\n-        sudo \\\n-        tesseract-ocr tesseract-ocr-eng imagemagick ghostscript unpaper \\\n-    && rm -rf /var/lib/apt/lists/*\n-\n-# Install python dependencies\n-RUN mkdir -p /usr/src/paperless\n+FROM alpine:3.7\n WORKDIR /usr/src/paperless\n COPY requirements.txt /usr/src/paperless/\n-RUN pip install --no-cache-dir -r requirements.txt\n-\n # Copy application\n-RUN mkdir -p /usr/src/paperless/src\n-RUN mkdir -p /usr/src/paperless/data\n-RUN mkdir -p /usr/src/paperless/media\n COPY src/ /usr/src/paperless/src/\n COPY data/ /usr/src/paperless/data/\n COPY media/ /usr/src/paperless/media/\n-\n+# Set export directory\n+ENV PAPERLESS_EXPORT_DIR /export","path":"Dockerfile","position":27,"original_position":27,"commit_id":"e1cf2117f5dded62492b72b0d0a6a2284c878966","original_commit_id":"e1cf2117f5dded62492b72b0d0a6a2284c878966","user":{"login":"pitkley","id":833543,"avatar_url":"https://avatars0.githubusercontent.com/u/833543?v=4","gravatar_id":"","url":"https://api.github.com/users/pitkley","html_url":"https://github.com/pitkley","followers_url":"https://api.github.com/users/pitkley/followers","following_url":"https://api.github.com/users/pitkley/following{/other_user}","gists_url":"https://api.github.com/users/pitkley/gists{/gist_id}","starred_url":"https://api.github.com/users/pitkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitkley/subscriptions","organizations_url":"https://api.github.com/users/pitkley/orgs","repos_url":"https://api.github.com/users/pitkley/repos","events_url":"https://api.github.com/users/pitkley/events{/privacy}","received_events_url":"https://api.github.com/users/pitkley/received_events","type":"User","site_admin":false},"body":"Since we are trying to reduce the size of the image, we should also strive to reduce the amount of layers.\r\n\r\nI would suggest to combine this and the next `ENV` instruction down to one, see [here](https://github.com/pitkley/docker-paperless/blob/dfbd8864b21d87205b9dc8352deaae123ef3a28b/Dockerfile#L3-L5) for how it works.","created_at":"2017-12-12T17:44:45Z","updated_at":"2017-12-12T18:03:47Z","html_url":"https://github.com/danielquinn/paperless/pull/274#discussion_r156442776","pull_request_url":"https://api.github.com/repos/danielquinn/paperless/pulls/274","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/danielquinn/paperless/pulls/comments/156442776"},"html":{"href":"https://github.com/danielquinn/paperless/pull/274#discussion_r156442776"},"pull_request":{"href":"https://api.github.com/repos/danielquinn/paperless/pulls/274"}}},"pull_request":{"url":"https://api.github.com/repos/danielquinn/paperless/pulls/274","id":157404835,"html_url":"https://github.com/danielquinn/paperless/pull/274","diff_url":"https://github.com/danielquinn/paperless/pull/274.diff","patch_url":"https://github.com/danielquinn/paperless/pull/274.patch","issue_url":"https://api.github.com/repos/danielquinn/paperless/issues/274","number":274,"state":"open","locked":false,"title":"adapted Dockerfile for alpine image","user":{"login":"addadi","id":449434,"avatar_url":"https://avatars3.githubusercontent.com/u/449434?v=4","gravatar_id":"","url":"https://api.github.com/users/addadi","html_url":"https://github.com/addadi","followers_url":"https://api.github.com/users/addadi/followers","following_url":"https://api.github.com/users/addadi/following{/other_user}","gists_url":"https://api.github.com/users/addadi/gists{/gist_id}","starred_url":"https://api.github.com/users/addadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addadi/subscriptions","organizations_url":"https://api.github.com/users/addadi/orgs","repos_url":"https://api.github.com/users/addadi/repos","events_url":"https://api.github.com/users/addadi/events{/privacy}","received_events_url":"https://api.github.com/users/addadi/received_events","type":"User","site_admin":false},"body":"moving to alpine based image saves appx. 400MB (45%) of the docker image size, with same functionality","created_at":"2017-12-09T21:14:55Z","updated_at":"2017-12-12T18:03:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6683a3c4ae9f332806593aee191185f031f3f30","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/danielquinn/paperless/pulls/274/commits","review_comments_url":"https://api.github.com/repos/danielquinn/paperless/pulls/274/comments","review_comment_url":"https://api.github.com/repos/danielquinn/paperless/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danielquinn/paperless/issues/274/comments","statuses_url":"https://api.github.com/repos/danielquinn/paperless/statuses/e1cf2117f5dded62492b72b0d0a6a2284c878966","head":{"label":"addadi:master","ref":"master","sha":"e1cf2117f5dded62492b72b0d0a6a2284c878966","user":{"login":"addadi","id":449434,"avatar_url":"https://avatars3.githubusercontent.com/u/449434?v=4","gravatar_id":"","url":"https://api.github.com/users/addadi","html_url":"https://github.com/addadi","followers_url":"https://api.github.com/users/addadi/followers","following_url":"https://api.github.com/users/addadi/following{/other_user}","gists_url":"https://api.github.com/users/addadi/gists{/gist_id}","starred_url":"https://api.github.com/users/addadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addadi/subscriptions","organizations_url":"https://api.github.com/users/addadi/orgs","repos_url":"https://api.github.com/users/addadi/repos","events_url":"https://api.github.com/users/addadi/events{/privacy}","received_events_url":"https://api.github.com/users/addadi/received_events","type":"User","site_admin":false},"repo":{"id":113621015,"name":"paperless","full_name":"addadi/paperless","owner":{"login":"addadi","id":449434,"avatar_url":"https://avatars3.githubusercontent.com/u/449434?v=4","gravatar_id":"","url":"https://api.github.com/users/addadi","html_url":"https://github.com/addadi","followers_url":"https://api.github.com/users/addadi/followers","following_url":"https://api.github.com/users/addadi/following{/other_user}","gists_url":"https://api.github.com/users/addadi/gists{/gist_id}","starred_url":"https://api.github.com/users/addadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addadi/subscriptions","organizations_url":"https://api.github.com/users/addadi/orgs","repos_url":"https://api.github.com/users/addadi/repos","events_url":"https://api.github.com/users/addadi/events{/privacy}","received_events_url":"https://api.github.com/users/addadi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/addadi/paperless","description":"Scan, index, and archive all of your paper documents","fork":true,"url":"https://api.github.com/repos/addadi/paperless","forks_url":"https://api.github.com/repos/addadi/paperless/forks","keys_url":"https://api.github.com/repos/addadi/paperless/keys{/key_id}","collaborators_url":"https://api.github.com/repos/addadi/paperless/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/addadi/paperless/teams","hooks_url":"https://api.github.com/repos/addadi/paperless/hooks","issue_events_url":"https://api.github.com/repos/addadi/paperless/issues/events{/number}","events_url":"https://api.github.com/repos/addadi/paperless/events","assignees_url":"https://api.github.com/repos/addadi/paperless/assignees{/user}","branches_url":"https://api.github.com/repos/addadi/paperless/branches{/branch}","tags_url":"https://api.github.com/repos/addadi/paperless/tags","blobs_url":"https://api.github.com/repos/addadi/paperless/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/addadi/paperless/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/addadi/paperless/git/refs{/sha}","trees_url":"https://api.github.com/repos/addadi/paperless/git/trees{/sha}","statuses_url":"https://api.github.com/repos/addadi/paperless/statuses/{sha}","languages_url":"https://api.github.com/repos/addadi/paperless/languages","stargazers_url":"https://api.github.com/repos/addadi/paperless/stargazers","contributors_url":"https://api.github.com/repos/addadi/paperless/contributors","subscribers_url":"https://api.github.com/repos/addadi/paperless/subscribers","subscription_url":"https://api.github.com/repos/addadi/paperless/subscription","commits_url":"https://api.github.com/repos/addadi/paperless/commits{/sha}","git_commits_url":"https://api.github.com/repos/addadi/paperless/git/commits{/sha}","comments_url":"https://api.github.com/repos/addadi/paperless/comments{/number}","issue_comment_url":"https://api.github.com/repos/addadi/paperless/issues/comments{/number}","contents_url":"https://api.github.com/repos/addadi/paperless/contents/{+path}","compare_url":"https://api.github.com/repos/addadi/paperless/compare/{base}...{head}","merges_url":"https://api.github.com/repos/addadi/paperless/merges","archive_url":"https://api.github.com/repos/addadi/paperless/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/addadi/paperless/downloads","issues_url":"https://api.github.com/repos/addadi/paperless/issues{/number}","pulls_url":"https://api.github.com/repos/addadi/paperless/pulls{/number}","milestones_url":"https://api.github.com/repos/addadi/paperless/milestones{/number}","notifications_url":"https://api.github.com/repos/addadi/paperless/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/addadi/paperless/labels{/name}","releases_url":"https://api.github.com/repos/addadi/paperless/releases{/id}","deployments_url":"https://api.github.com/repos/addadi/paperless/deployments","created_at":"2017-12-08T21:57:34Z","updated_at":"2017-12-08T21:57:36Z","pushed_at":"2017-12-11T20:04:05Z","git_url":"git://github.com/addadi/paperless.git","ssh_url":"git@github.com:addadi/paperless.git","clone_url":"https://github.com/addadi/paperless.git","svn_url":"https://github.com/addadi/paperless","homepage":"","size":4414,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"danielquinn:master","ref":"master","sha":"af4623e60563f5e4328e87ec8027f79804f8d08a","user":{"login":"danielquinn","id":218205,"avatar_url":"https://avatars1.githubusercontent.com/u/218205?v=4","gravatar_id":"","url":"https://api.github.com/users/danielquinn","html_url":"https://github.com/danielquinn","followers_url":"https://api.github.com/users/danielquinn/followers","following_url":"https://api.github.com/users/danielquinn/following{/other_user}","gists_url":"https://api.github.com/users/danielquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/danielquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielquinn/subscriptions","organizations_url":"https://api.github.com/users/danielquinn/orgs","repos_url":"https://api.github.com/users/danielquinn/repos","events_url":"https://api.github.com/users/danielquinn/events{/privacy}","received_events_url":"https://api.github.com/users/danielquinn/received_events","type":"User","site_admin":false},"repo":{"id":48320384,"name":"paperless","full_name":"danielquinn/paperless","owner":{"login":"danielquinn","id":218205,"avatar_url":"https://avatars1.githubusercontent.com/u/218205?v=4","gravatar_id":"","url":"https://api.github.com/users/danielquinn","html_url":"https://github.com/danielquinn","followers_url":"https://api.github.com/users/danielquinn/followers","following_url":"https://api.github.com/users/danielquinn/following{/other_user}","gists_url":"https://api.github.com/users/danielquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/danielquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielquinn/subscriptions","organizations_url":"https://api.github.com/users/danielquinn/orgs","repos_url":"https://api.github.com/users/danielquinn/repos","events_url":"https://api.github.com/users/danielquinn/events{/privacy}","received_events_url":"https://api.github.com/users/danielquinn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielquinn/paperless","description":"Scan, index, and archive all of your paper documents","fork":false,"url":"https://api.github.com/repos/danielquinn/paperless","forks_url":"https://api.github.com/repos/danielquinn/paperless/forks","keys_url":"https://api.github.com/repos/danielquinn/paperless/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielquinn/paperless/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielquinn/paperless/teams","hooks_url":"https://api.github.com/repos/danielquinn/paperless/hooks","issue_events_url":"https://api.github.com/repos/danielquinn/paperless/issues/events{/number}","events_url":"https://api.github.com/repos/danielquinn/paperless/events","assignees_url":"https://api.github.com/repos/danielquinn/paperless/assignees{/user}","branches_url":"https://api.github.com/repos/danielquinn/paperless/branches{/branch}","tags_url":"https://api.github.com/repos/danielquinn/paperless/tags","blobs_url":"https://api.github.com/repos/danielquinn/paperless/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielquinn/paperless/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielquinn/paperless/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielquinn/paperless/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielquinn/paperless/statuses/{sha}","languages_url":"https://api.github.com/repos/danielquinn/paperless/languages","stargazers_url":"https://api.github.com/repos/danielquinn/paperless/stargazers","contributors_url":"https://api.github.com/repos/danielquinn/paperless/contributors","subscribers_url":"https://api.github.com/repos/danielquinn/paperless/subscribers","subscription_url":"https://api.github.com/repos/danielquinn/paperless/subscription","commits_url":"https://api.github.com/repos/danielquinn/paperless/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielquinn/paperless/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielquinn/paperless/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielquinn/paperless/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielquinn/paperless/contents/{+path}","compare_url":"https://api.github.com/repos/danielquinn/paperless/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielquinn/paperless/merges","archive_url":"https://api.github.com/repos/danielquinn/paperless/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielquinn/paperless/downloads","issues_url":"https://api.github.com/repos/danielquinn/paperless/issues{/number}","pulls_url":"https://api.github.com/repos/danielquinn/paperless/pulls{/number}","milestones_url":"https://api.github.com/repos/danielquinn/paperless/milestones{/number}","notifications_url":"https://api.github.com/repos/danielquinn/paperless/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielquinn/paperless/labels{/name}","releases_url":"https://api.github.com/repos/danielquinn/paperless/releases{/id}","deployments_url":"https://api.github.com/repos/danielquinn/paperless/deployments","created_at":"2015-12-20T12:54:28Z","updated_at":"2017-12-10T17:45:26Z","pushed_at":"2017-12-11T20:04:07Z","git_url":"git://github.com/danielquinn/paperless.git","ssh_url":"git@github.com:danielquinn/paperless.git","clone_url":"https://github.com/danielquinn/paperless.git","svn_url":"https://github.com/danielquinn/paperless","homepage":"","size":4416,"stargazers_count":3850,"watchers_count":3850,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":196,"mirror_url":null,"archived":false,"open_issues_count":42,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":196,"open_issues":42,"watchers":3850,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danielquinn/paperless/pulls/274"},"html":{"href":"https://github.com/danielquinn/paperless/pull/274"},"issue":{"href":"https://api.github.com/repos/danielquinn/paperless/issues/274"},"comments":{"href":"https://api.github.com/repos/danielquinn/paperless/issues/274/comments"},"review_comments":{"href":"https://api.github.com/repos/danielquinn/paperless/pulls/274/comments"},"review_comment":{"href":"https://api.github.com/repos/danielquinn/paperless/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danielquinn/paperless/pulls/274/commits"},"statuses":{"href":"https://api.github.com/repos/danielquinn/paperless/statuses/e1cf2117f5dded62492b72b0d0a6a2284c878966"}},"author_association":"NONE"}}
{"actor":{"display_login":"pitkley"}}