<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ay4toh5i</author_name>
  <author_url>https://blog.hatena.ne.jp/ay4toh5i/</author_url>
  <blog_title>micro tips</blog_title>
  <blog_url>https://ay4toh5i.hatenablog.jp/</blog_url>
  <categories>
    <anon>docker</anon>
  </categories>
  <description>scratch imageとは dockerが用意した最小イメージです。 shやlsすら入っていないので、goやrustのようなシングルバイナリを生成できる言語で超軽量なコンテナを作りたい際にうってつけです。 しかし、普段各言語公式のイメージなどに慣れていると、意識せずに使っていたファイルが存在せずにうまく動かないこともあります。 証明書を入れる httpsを使うならTSLのためにCA証明書を入れておく必要があります。 自前で用意せずに、メンテされてそうなイメージから引っ張ってくるのがおすすめです。 Goの場合、公式alpineベースのイメージに含まれているので、これから引っ張ってきました。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fay4toh5i.hatenablog.jp%2Fentry%2F2020%2F05%2F11%2Fdocker-scratch-image&quot; title=&quot;dockerでscratchイメージを使う - micro tips&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-05-11 00:14:10</published>
  <title>dockerでscratchイメージを使う</title>
  <type>rich</type>
  <url>https://ay4toh5i.hatenablog.jp/entry/2020/05/11/docker-scratch-image</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
