瀏覽代碼

improvement(docker): smaller images via no-cache option (via #5157)

* add no-cache option for smaller images

* move flag immediately after `apk`

adjusting to be as close to the example as possible: https://github.com/gliderlabs/docker-alpine/blob/master/docs/usage.md#disabling-cache
bubble
Drew Freyling 5 年之前
committed by kyle
父節點
當前提交
52ce2871a2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Dockerfile

+ 1
- 1
Dockerfile 查看文件

@@ -4,7 +4,7 @@

FROM nginx:1.15-alpine

RUN apk add nodejs
RUN apk --no-cache add nodejs

LABEL maintainer="fehguy"



Loading…
取消
儲存