From d7cc2474399ccd3b129df4f190b4c6cb9d5313dd Mon Sep 17 00:00:00 2001 From: Sergey Alexandrovich Date: Fri, 2 Feb 2018 19:18:14 +0600 Subject: [PATCH] Deploy to Heroku with Docker (#50) * Try out deploying Docker image to Heroku * Add heroku.yml --- Aptfile | 2 -- app.json | 7 ++----- heroku.yml | 3 +++ 3 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 Aptfile create mode 100644 heroku.yml diff --git a/Aptfile b/Aptfile deleted file mode 100644 index ffce9d3d..00000000 --- a/Aptfile +++ /dev/null @@ -1,2 +0,0 @@ -:repo:deb http://ppa.launchpad.net/dhor/myway/ubuntu xenial main -libvips-dev diff --git a/app.json b/app.json index ee00b22b..bc237704 100644 --- a/app.json +++ b/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" } diff --git a/heroku.yml b/heroku.yml new file mode 100644 index 00000000..8eec25b9 --- /dev/null +++ b/heroku.yml @@ -0,0 +1,3 @@ +build: + docker: + web: Dockerfile