mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-11-03 19:43:24 +00:00
build(image): bump Dockerfile to python3.10 (#1214)
This commit is contained in:
parent
4c13d12dc3
commit
ba70828f4a
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,3 +1,13 @@
|
|||||||
|
## 0.10.8
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
* Release docker image that installs Python 3.10 rather than 3.8
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
## 0.10.7
|
## 0.10.7
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|||||||
10
Dockerfile
10
Dockerfile
@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:experimental
|
# syntax=docker/dockerfile:experimental
|
||||||
FROM quay.io/unstructured-io/base-images:rocky8.7-3 as base
|
FROM quay.io/unstructured-io/base-images:rocky8.7-5 as base
|
||||||
|
|
||||||
ARG PIP_VERSION
|
ARG PIP_VERSION
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ FROM base as deps
|
|||||||
# Copy and install Unstructured
|
# Copy and install Unstructured
|
||||||
COPY requirements requirements
|
COPY requirements requirements
|
||||||
|
|
||||||
RUN python3.8 -m pip install pip==${PIP_VERSION} && \
|
RUN python3.10 -m pip install pip==${PIP_VERSION} && \
|
||||||
dnf -y groupinstall "Development Tools" && \
|
dnf -y groupinstall "Development Tools" && \
|
||||||
pip install --no-cache -r requirements/base.txt && \
|
pip install --no-cache -r requirements/base.txt && \
|
||||||
pip install --no-cache -r requirements/test.txt && \
|
pip install --no-cache -r requirements/test.txt && \
|
||||||
@ -50,14 +50,14 @@ RUN python3.8 -m pip install pip==${PIP_VERSION} && \
|
|||||||
dnf -y groupremove "Development Tools" && \
|
dnf -y groupremove "Development Tools" && \
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
||||||
RUN python3.8 -c "import nltk; nltk.download('punkt')" && \
|
RUN python3.10 -c "import nltk; nltk.download('punkt')" && \
|
||||||
python3.8 -c "import nltk; nltk.download('averaged_perceptron_tagger')"
|
python3.10 -c "import nltk; nltk.download('averaged_perceptron_tagger')"
|
||||||
|
|
||||||
FROM deps as code
|
FROM deps as code
|
||||||
|
|
||||||
COPY example-docs example-docs
|
COPY example-docs example-docs
|
||||||
COPY unstructured unstructured
|
COPY unstructured unstructured
|
||||||
|
|
||||||
RUN python3.8 -c "from unstructured.ingest.doc_processor.generalized import initialize; initialize()"
|
RUN python3.10 -c "from unstructured.ingest.doc_processor.generalized import initialize; initialize()"
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
__version__ = "0.10.7" # pragma: no cover
|
__version__ = "0.10.8" # pragma: no cover
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user