<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cohalz</author_name>
  <author_url>https://blog.hatena.ne.jp/cohalz/</author_url>
  <blog_title>Re:cohalz</blog_title>
  <blog_url>https://cohalz.co/</blog_url>
  <categories>
  </categories>
  <description>この記事は はてなエンジニア Advent Calendar 2021 11日目の記事です。 コンテナのベースイメージとしてdistrolessを選択肢にするということがここ最近増えてきました。 そんなdistrolessを非rootユーザで使おうとしたらとても簡単だったのでその紹介です。 どのくらい簡単かというと、Goのアプリケーションであれば以下のように変えるだけで対応できます。(コメントアウト部分は元々のrootユーザで動かしていた場合のもの) FROM golang:1.17 as builder WORKDIR /go/src COPY go.mod go.sum . RUN go …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcohalz.co%2Fentry%2F2021%2F12%2F11%2F000000&quot; title=&quot;distrolessのnonrootイメージを使おう - Re:cohalz&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>2021-12-11 00:00:00</published>
  <title>distrolessのnonrootイメージを使おう</title>
  <type>rich</type>
  <url>https://cohalz.co/entry/2021/12/11/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
