public void addByteEntry(byte[] contents, String name, Instant modificationTime) {
    TarArchiveEntry entry = new TarArchiveEntry(name);
    entry.setSize(contents.length);
    entry.setModTime(modificationTime.toEpochMilli());
    archiveMap.put(entry, Blobs.from(outputStream -> outputStream.write(contents), true));
  }
Adds a blob to the archive. Note that this should be used with raw bytes and not file contents;
for adding files to the archive, use {@link #addTarArchiveEntry}.

@param contents the bytes to add to the tarball
@param name the name of the entry (i.e. filename)
@param modificationTime the modification time of the entry
jib-core/src/main/java/com/google/cloud/tools/jib/tar/TarStreamBuilder.java