소스 검색

Deploy to Heroku with Docker (#50)

* Try out deploying Docker image to Heroku

* Add heroku.yml
Sergey Alexandrovich 7 년 전
부모
커밋
d7cc247439
3개의 변경된 파일5개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 2
      Aptfile
  2. 2 5
      app.json
  3. 3 0
      heroku.yml

+ 0 - 2
Aptfile

@@ -1,2 +0,0 @@
-:repo:deb http://ppa.launchpad.net/dhor/myway/ubuntu xenial main
-libvips-dev

+ 2 - 5
app.json

@@ -3,7 +3,7 @@
   "description": "Fast and secure standalone server for resizing and converting remote images.",
   "keywords": ["image", "resize-images", "crop-image", "microservice", "docker", "jpeg", "png", "libvips"],
   "repository": "https://github.com/DarthSim/imgproxy",
-  "stack": "heroku-16",
+  "stack": "container",
   "env": {
     "IMGPROXY_KEY": {
       "description": "Hex-encoded secret key for signing URLs.",
@@ -16,8 +16,5 @@
       "required": true
     }
   },
-  "buildpacks": [
-    { "url": "https://github.com/heroku/heroku-buildpack-apt" },
-    { "url": "https://github.com/heroku/heroku-buildpack-go" }
-  ]
+  "image": "darthsim/imgproxy"
 }

+ 3 - 0
heroku.yml

@@ -0,0 +1,3 @@
+build:
+  docker:
+    web: Dockerfile