{"id":505226,"date":"2026-06-30T21:18:00","date_gmt":"2026-06-30T21:18:00","guid":{"rendered":"https:\/\/livelycity.com\/switzerland\/alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk\/"},"modified":"2026-06-30T21:18:00","modified_gmt":"2026-06-30T21:18:00","slug":"alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk","status":"publish","type":"post","link":"https:\/\/livelycity.com\/switzerland\/alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk\/","title":{"rendered":"Alpine Dockerfile advantages of &#8211;no-cache vs. rm \/var\/cache\/apk\/*"},"content":{"rendered":"<p>When creating Dockerfiles using an Alpine image, I have often seen the use of either apk add &#8211;no-cache, or apk add followed by an rm \/var\/cache\/apk\/* statement. I am curious to know whether maki&#8230;<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/49118579\/alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk\" target=\"_blank\" class=\"\">https:\/\/stackoverflow.com\/questions\/49118579\/alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk<\/a>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When creating Dockerfiles using an Alpine image, I have often seen the use of either apk add &#8211;no-cache, or apk add followed by an rm&#8230;<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-505226","post","type-post","status-publish","format-standard","hentry","category-kunsthaus-zurich-en","wpcat-13-id"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/505226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/comments?post=505226"}],"version-history":[{"count":0,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/505226\/revisions"}],"wp:attachment":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/media?parent=505226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/categories?post=505226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/tags?post=505226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}