Skip to content

Commit 7ec00e0

Browse files
committed
Fixes
1 parent 324f6c8 commit 7ec00e0

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ FROM quay.io/unstructured-io/base-images:wolfi-base-latest as base
55
# https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html
66
ARG NB_USER=notebook-user
77
ARG NB_UID=1000
8-
ARG PIP_VERSION
98
ARG PIPELINE_PACKAGE
109
ARG PYTHON_VERSION="3.12"
1110

@@ -21,7 +20,6 @@ ENV PATH="/home/${NB_USER}/.local/bin:${PATH}"
2120

2221
FROM base as python-deps
2322
COPY --chown=${NB_USER}:${NB_USER} requirements/base.txt requirements-base.txt
24-
RUN ${PIP} install pip==${PIP_VERSION}
2523
RUN ${PIP} install --no-cache -r requirements-base.txt
2624

2725
FROM python-deps as model-deps

docker/rockylinux-9.4/Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# syntax=docker/dockerfile:experimental
2-
FROM quay.io/unstructured-io/base-images:wolfi-base-latest AS base
2+
FROM quay.io/unstructured-io/base-images:rocky9.2-9@sha256:73d8492452f086144d4b92b7931aa04719f085c74d16cae81e8826ef873729c9 as base
33

44
# NOTE(crag): NB_USER ARG for mybinder.org compat:
55
# https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html
66
ARG NB_USER=notebook-user
77
ARG NB_UID=1000
8-
ARG PIP_VERSION
98
ARG PIPELINE_PACKAGE
109

1110
# Set up environment
@@ -22,18 +21,18 @@ ENV PATH="/home/${NB_USER}/.local/bin:${PATH}"
2221
FROM base as python-deps
2322
# COPY requirements/dev.txt requirements-dev.txt
2423
COPY requirements/base.txt requirements-base.txt
25-
RUN python3.12 -m pip install pip==${PIP_VERSION} \
24+
RUN python3.10 -m pip install pip==${PIP_VERSION} \
2625
&& dnf -y groupinstall "Development Tools" \
27-
&& su -l ${NB_USER} -c 'pip3.12 install --no-cache -r requirements-base.txt' \
26+
&& su -l ${NB_USER} -c 'pip3.10 install --no-cache -r requirements-base.txt' \
2827
&& dnf -y groupremove "Development Tools" \
2928
&& dnf clean all \
30-
&& ln -s /home/notebook-user/.local/bin/pip3.12 /usr/local/bin/pip3.12 || true
29+
&& ln -s /home/notebook-user/.local/bin/pip3.10 /usr/local/bin/pip3.10 || true
3130

3231
USER ${NB_USER}
3332

3433
FROM python-deps as model-deps
35-
RUN python3.12 -c "from unstructured.nlp.tokenize import download_nltk_packages; download_nltk_packages()" && \
36-
python3.12 -c "from unstructured.partition.model_init import initialize; initialize()"
34+
RUN python3.10 -c "from unstructured.nlp.tokenize import download_nltk_packages; download_nltk_packages()" && \
35+
python3.10 -c "from unstructured.partition.model_init import initialize; initialize()"
3736

3837
FROM model-deps as code
3938
COPY --chown=${NB_USER}:${NB_USER} CHANGELOG.md CHANGELOG.md

0 commit comments

Comments
 (0)