docker run -p 8000:8000 -d --rm --name unstructured-api downloads.unstructured.io/unstructured-io/unstructured-api:latest --port 8000 --host 0.0.0.0 访问http://localhost:8000 即可使用 API。 API 请求示例: 使用curl 命令向 API 发送 POST 请求,上传文件并获取处理结果。例如,处理一个 PDF 文件...
docker pull downloads.unstructured.io/unstructured-io/unstructured-api:latest Once pulled, you can launch the container as a web app on localhost:8000. docker run -p 8000:8000 -d --rm --name unstructured-api downloads.unstructured.io/unstructured-io/unstructured-api:latest You can pass in a...
Dockerfile requirements base.txt 27 changes: 21 additions & 6 deletions27Dockerfile Original file line numberDiff line numberDiff line change @@ -1,5 +1,5 @@ #syntax=docker/dockerfile:experimental FROMquay.io/unstructured-io/base-images:wolfi-base@sha256:7c3af225a39f730f4feee705df6cd8d...
# https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html ARG NB_USER=notebook-user @@ -14,8 +16,10 @@ ENV PYTHON=python${PYTHON_VERSION} ENV PIP="${PYTHON} -m pip" ENV HOME=/home/${NB_USER}# Create user and home directory RUN adduser -u ${NB_UID} -h ${HOME...
"$DOCKER_IMAGE" \ prepline_general.api.app:app --port "$port" --host 0.0.0.0 prepline_general.api.app:app --port "$port" --host 0.0.0.0 --log-level debug)# Ensure the container starts if [ -z "$container_id" ]; then
Testing This test run triggered a build of images. They can be found at quay.io/unstructured-io/test-unstructured-api:7babf16 in the repo here. To test: Test the current state: docker pull quay.io/...
uses: docker/setup-qemu-action@v3 - name: Test image env: DOCKER_IMAGE: "$DOCKER_BUILD_REPOSITORY:$ARCH-$SHORT_SHA" run: | source .venv/bin/activate export DOCKER_IMAGE="$DOCKER_BUILD_REPOSITORY:$ARCH-$SHORT_SHA" if [ "$DOCKER_PLATFORM" == "linux/arm64" ]; then SKIP_INFERENCE_TEST...
12 changes: 6 additions & 6 deletions 12 Dockerfile Original file line numberDiff line numberDiff line change @@ -9,15 +9,15 @@ ARG PIP_VERSION ARG PIPELINE_PACKAGE ARG PYTHON_VERSION="3.11" # Set up environment ENV PYTHON="python${PYTHON_VERSION}" \ PIP="${PYTHON} -m pip" \ ...
DOCKER_IMAGE="$DOCKER_BUILD_REPOSITORY:${{ matrix.arch }}-$SHORT_SHA" \ Contributor Author micmarty-deepsense Jun 21, 2024 this caused syntax error micmarty-deepsense requested review from amadeusz-ds and MthwRobinson June 21, 2024 11:53 amadeusz-ds approved these changes Jun 21, 2024...
You can also `make docker-build && make docker-start-api`, and test out the docx in the sample docs dir. On `main`, this file will give you the error above. ``` curl 'http://localhost:8000/general/v0/general' \ --form 'files=@"fake.docx"' ```...