rebuild docker image from specific step

后端 未结 7 1311
北荒
北荒 2020-12-23 12:50

I have the below Dockerfile.

FROM ubuntu:14.04
MAINTAINER Samuel Alexander 

RUN          


        
7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-23 13:12

    One workaround:

    1. Locate the step you want to execute from.
    2. Before that step put a simple dummy operation like "RUN pwd"

    Then just build your Dockerfile. It will take everything up to that step from the cache and then execute the lines after the dummy command.

提交回复
热议问题