|
|
| FROM python:3.10.11-slim-bullseye |
|
|
| |
| RUN apt-get -y update && apt-get install -y curl build-essential fastjar libmagic-mgc libmagic1 mime-support && \ |
| apt-get clean && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| WORKDIR /admin |
| RUN curl -sL https://github.com/cheshire-cat-ai/admin-vue/releases/download/Admin/release.zip | jar -xv |
|
|
| |
| COPY ./pyproject.toml /app/pyproject.toml |
|
|
| |
| WORKDIR /app |
| RUN pip install -U pip && \ |
| pip install --no-cache-dir . &&\ |
| python3 -c "import nltk; nltk.download('punkt');nltk.download('averaged_perceptron_tagger')" |
|
|
| |
| COPY ./cat /app/cat |
|
|
| |
| COPY ./install_plugin_dependencies.py /app/install_plugin_dependencies.py |
| RUN python3 install_plugin_dependencies.py |
|
|
| |
| CMD python3 -m cat.main |