Unstructured-IO / unstructured-api

Apache License 2.0
429 stars 94 forks source link

build: replace rockylinux with chainguard/wolfi as a base image #423

Closed christinestraub closed 3 weeks ago

christinestraub commented 4 weeks ago

Summary

Updates the Dockerfile to use the Chainguard wolfi-base image to reduce CVEs. Also adds a step in the docker publish job that scans the images and checks for CVEs before publishing.

Testing

Run make docker-build and make docker-start-api, then try:

from unstructured.partition.api import partition_via_api

elements = partition_via_api(
    filename=filename,
    api_url="http://localhost:8000/general/v0/general",
    api_key="<API-KEY>",
    strategy="hi_res",
)

print("\n\n".join([str(el) for el in elements]))