<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oneal-desu</author_name>
  <author_url>https://blog.hatena.ne.jp/oneal-desu/</author_url>
  <blog_title>ばーろぐわにる</blog_title>
  <blog_url>https://varlogwaneal.hatenablog.com/</blog_url>
  <categories>
    <anon>docker</anon>
  </categories>
  <description>目的 docker buildの引数でDockerfileのベースイメージ(FROM部分)を指定する ベースイメージが環境毎に違う場合(AWSアカウントが別れてて、ECRが別々とか)、1つのDockerfileで違うリポジトリを指定したいときとかに便利 やりかた Dockerfile ARG BASE_IMAGE FROM ${BASE_IMAGE}:latest RUN hogehoge コマンド docker build --build-arg BASE_IMAGE=XXXXXXXX.dkr.ecr.ap-northeast-1.amazonaws.com/ruby . --build-a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvarlogwaneal.hatenablog.com%2Fentry%2F2020%2F09%2F14%2F213543&quot; title=&quot;Dockerfileで引数を元にベースイメージを指定する - ばーろぐわにる&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-14 21:35:43</published>
  <title>Dockerfileで引数を元にベースイメージを指定する</title>
  <type>rich</type>
  <url>https://varlogwaneal.hatenablog.com/entry/2020/09/14/213543</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
