Ver Fonte

Add build arg to Heroku Dockerfile

DarthSim há 5 anos atrás
pai
commit
6ce4201bb0
2 ficheiros alterados com 5 adições e 1 exclusões
  1. 2 0
      heroku.yml
  2. 3 1
      heroku/Dockerfile

+ 2 - 0
heroku.yml

@@ -1,3 +1,5 @@
 build:
+  config:
+    IMGPROXY_TAG: latest
   docker:
     web: heroku/Dockerfile

+ 3 - 1
heroku/Dockerfile

@@ -1,2 +1,4 @@
-FROM darthsim/imgproxy:latest
+ARG IMGPROXY_TAG=latest
+
+FROM darthsim/imgproxy:$IMGPROXY_TAG
 LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"