| # SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project | |
| # SPDX-FileType: SOURCE | |
| # SPDX-License-Identifier: Apache-2.0 | |
| FROM python:3.8-slim-buster | |
| COPY . . | |
| RUN apt-get update && apt-get install -y --no-install-recommends build-essential libicu-dev libicu63 pkg-config && rm -rf /var/lib/apt/lists/* | |
| RUN pip3 install --upgrade pip setuptools | |
| RUN if [ -f docker_requirements.txt ]; then pip3 install -r docker_requirements.txt; fi | |
| RUN pip3 install -e .[full] && pip3 cache purge | |