protected File export(Archive<?> archive) throws Exception {
    if (archive instanceof WebArchive == false) {
      throw new IllegalArgumentException("Can only handle .war deployments: " + archive);
    }

    Node dockerFile = archive.get("Dockerfile");
    if (dockerFile == null) {
      if (configuration.getFrom() == null) {
        throw new IllegalArgumentException("Missing Docker's FROM value!");
      }

      log.info("Using Docker FROM: " + configuration.getFrom());

      String content = "FROM " + configuration.getFrom() + "\n" + "ADD . /app" + "\n";
      archive.add(new StringAsset(content), "Dockerfile");
    }

    return super.export(archive);
  }