Skip to content

Commit e70d47f

Browse files
authored
build(image): move to python3.10 from python3.8 (#209)
A similar update was made here: Unstructured-IO/unstructured#1214
1 parent 2c81930 commit e70d47f

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Diff for: CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 0.0.40-dev0
1+
## 0.0.40
22

3-
* Reject traffic when we're overloaded via `UNSTRUCTURED_MEMORY_FREE_MINIMUM_MB`
3+
* Reject traffic when overloaded via `UNSTRUCTURED_MEMORY_FREE_MINIMUM_MB`
4+
* Docker image built with Python 3.10 rather than 3.8
45

56
## 0.0.39
67

Diff for: Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:experimental
2-
FROM quay.io/unstructured-io/base-images:rocky8.7-3 as base
2+
FROM quay.io/unstructured-io/base-images:rocky8.7-5 as base
33

44
# NOTE(crag): NB_USER ARG for mybinder.org compat:
55
# https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html
@@ -24,19 +24,19 @@ ENV PATH="/home/${NB_USER}/.local/bin:${PATH}"
2424
FROM base as python-deps
2525
# COPY requirements/dev.txt requirements-dev.txt
2626
COPY requirements/base.txt requirements-base.txt
27-
RUN python3.8 -m pip install pip==${PIP_VERSION} \
27+
RUN python3.10 -m pip install pip==${PIP_VERSION} \
2828
&& dnf -y groupinstall "Development Tools" \
29-
&& su -l ${NB_USER} -c 'pip3.8 install --no-cache -r requirements-base.txt' \
29+
&& su -l ${NB_USER} -c 'pip3.10 install --no-cache -r requirements-base.txt' \
3030
&& dnf -y groupremove "Development Tools" \
3131
&& dnf clean all \
32-
&& ln -s /home/notebook-user/.local/bin/pip3.8 /usr/local/bin/pip3.8 || true
32+
&& ln -s /home/notebook-user/.local/bin/pip3.10 /usr/local/bin/pip3.10 || true
3333

3434
USER ${NB_USER}
3535

3636
FROM python-deps as model-deps
37-
RUN python3.8 -c "import nltk; nltk.download('punkt')" && \
38-
python3.8 -c "import nltk; nltk.download('averaged_perceptron_tagger')" && \
39-
python3.8 -c "from unstructured.ingest.doc_processor.generalized import initialize; initialize()"
37+
RUN python3.10 -c "import nltk; nltk.download('punkt')" && \
38+
python3.10 -c "import nltk; nltk.download('averaged_perceptron_tagger')" && \
39+
python3.10 -c "from unstructured.ingest.doc_processor.generalized import initialize; initialize()"
4040

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

0 commit comments

Comments
 (0)