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]))
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
andmake docker-start-api
, then try: