소스 검색

Add build arg to Heroku Dockerfile

DarthSim 6 년 전
부모
커밋
6ce4201bb0
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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>"