public ImageFromDockerfile withTarget(String target) {
        this.target = Optional.of(target);
        return this;
    }
Sets the target build stage to use.

@param target the target build stage
core/src/main/java/org/testcontainers/images/builder/ImageFromDockerfile.java