File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - luke/manual-deploy
78
89env :
910 DOCKER_REPOSITORY : quay.io/unstructured-io/unstructured-api
5556 - name : Set up Docker Buildx
5657 uses : docker/setup-buildx-action@v3
5758 with :
58- driver : ${{ matrix.arch == 'amd64' && 'docker' || 'docker-container' }}
59+ # driver: ${{ matrix.arch == 'amd64' && 'docker' || 'docker-container' }}
60+ driver : ${{ 'docker-container' }}
5961 - name : Checkout code
6062 uses : actions/checkout@v4
6163 - name : Login to Quay.io
7072 sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost
7173
7274 DOCKER_BUILDKIT=1 docker buildx build --load -f Dockerfile \
73- --platform=$DOCKER_PLATFORM \
75+ --platform=${{ matrix.arch }} \
7476 --build-arg PIP_VERSION=$PIP_VERSION \
7577 --build-arg BUILDKIT_INLINE_CACHE=1 \
7678 --build-arg PIPELINE_PACKAGE=${{ env.PIPELINE_FAMILY }} \
Original file line number Diff line number Diff line change @@ -10,23 +10,22 @@ ARG PIPELINE_PACKAGE
1010ARG PYTHON_VERSION="3.11"
1111
1212# Set up environment
13- ENV PYTHON python${PYTHON_VERSION}
14- ENV PIP ${PYTHON} -m pip
13+ ENV PYTHON="python${PYTHON_VERSION}" \
14+ PIP="${PYTHON} -m pip" \
15+ PYTHONPATH="${PYTHONPATH}:${HOME}" \
16+ PATH="/home/${NB_USER}/.local/bin:${PATH}"
1517
1618WORKDIR ${HOME}
1719USER ${NB_USER}
1820
19- ENV PYTHONPATH="${PYTHONPATH}:${HOME}"
20- ENV PATH="/home/${NB_USER}/.local/bin:${PATH}"
21-
2221FROM base as python-deps
2322COPY --chown=${NB_USER}:${NB_USER} requirements/base.txt requirements-base.txt
24- RUN ${PIP} install pip==${PIP_VERSION}
25- RUN ${PIP} install --no-cache -r requirements-base.txt
23+ RUN ${PIP} install pip==${PIP_VERSION} && \
24+ ${PIP} install --no-cache -r requirements-base.txt
2625
2726FROM python-deps as model-deps
2827RUN ${PYTHON} -c "from unstructured.nlp.tokenize import download_nltk_packages; download_nltk_packages()" && \
29- ${PYTHON} -c "from unstructured.partition.model_init import initialize; initialize()"
28+ ${PYTHON} -c "from unstructured.partition.model_init import initialize; initialize()"
3029
3130FROM model-deps as code
3231COPY --chown=${NB_USER}:${NB_USER} CHANGELOG.md CHANGELOG.md
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ CONTAINER_NAME_PARALLEL=unstructured-api-smoke-test-parallel
1616PIPELINE_FAMILY=${PIPELINE_FAMILY:- " general" }
1717DOCKER_IMAGE=" ${DOCKER_IMAGE:- pipeline-family-${PIPELINE_FAMILY} -dev: latest} "
1818SKIP_INFERENCE_TESTS=" ${SKIP_INFERENCE_TESTS:- false} "
19+ DOCKER_PLATFORM=" ${DOCKER_PLATFORM:- " linux/arm64" } "
1920
2021start_container () {
2122
You can’t perform that action at this time.
0 commit comments