senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. sublimer@鯖缶 (sublimer@mstdn.sublimer.me)'s status on Sunday, 27-Mar-2022 10:06:24 JST sublimer@鯖缶 sublimer@鯖缶

    へー

    `COPY --chmod` reduced the size of my container image by 35% : ????--- https://blog.vamc19.dev/posts/dockerfile-copy-chmod/

    In conversation Sunday, 27-Mar-2022 10:06:24 JST from mstdn.sublimer.me permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      `COPY --chmod` reduced the size of my container image by 35%
      Earlier this week, I was writing a Dockerfile to download and run a binary when I noticed the image size was way more than what I would expect. I’m using ubuntu:21.10 as the base image, which is about 70MB. The binary I’m running is about 80MB. Other packages I’m installing would add 10-ish MB. But the image size is 267MB? Clearly I’m doing something wrong. But what? My Dockerfile is fairly simple and, what I considered, idiomatic:

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.