All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testcontainers.images.builder.dockerfile.traits.EntryPointStatementTrait Maven / Gradle / Ivy

There is a newer version: 1.20.1
Show newest version
package org.testcontainers.images.builder.dockerfile.traits;

import org.testcontainers.images.builder.dockerfile.statement.MultiArgsStatement;
import org.testcontainers.images.builder.dockerfile.statement.SingleArgumentStatement;

public interface EntryPointStatementTrait & DockerfileBuilderTrait> {

    default SELF entryPoint(String command) {
        return ((SELF) this).withStatement(new SingleArgumentStatement("ENTRYPOINT", command));
    }

    default SELF entryPoint(String... commandParts) {
        return ((SELF) this).withStatement(new MultiArgsStatement("ENTRYPOINT", commandParts));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy