<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>skobaken</author_name>
  <author_url>https://blog.hatena.ne.jp/skobaken/</author_url>
  <blog_title>Legalscapeテックブログ</blog_title>
  <blog_url>https://tech.legalscape.co.jp/</blog_url>
  <categories>
    <anon>Docker</anon>
  </categories>
  <description>はじめまして、Legalscapeエンジニアリングマネージャーの小林です。 今回は、DockerfileのCOPYが便利になっているのを発見したので紹介していきたいと思います。 DockerfileのCOPYは一癖ある 例えば、以下のようなディレクトリ構成において tree . |-- Dockerfile |-- package.json `-- src |-- a.ts `-- b.ts 2 directories, 3 files Dockerfileの中身が FROM node:slim WORKDIR /app COPY package.json src ./ となっている時、このD…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.legalscape.co.jp%2Fentry%2F2025%2F08%2F22%2F175615&quot; title=&quot;DockerfileのCOPY --parentsが便利 - Legalscapeテックブログ&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>2025-08-22 17:56:15</published>
  <title>DockerfileのCOPY --parentsが便利</title>
  <type>rich</type>
  <url>https://tech.legalscape.co.jp/entry/2025/08/22/175615</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
