Skip to content
Snippets Groups Projects
Commit 76f069d4 authored by mammo0's avatar mammo0
Browse files

add an option to include the language models into the Docker image

-> this allows the direct offline usage of the Docker image
parent 42ec04e4
No related branches found
No related tags found
No related merge requests found
FROM python:3.8
ARG with_models=false
WORKDIR /app
RUN pip install --upgrade pip
COPY . .
# check for offline build
RUN if [ "$with_models" = "true" ]; then \
# install only the dependencies first
pip install -e .; \
# initialize the language models
./install_models.py; \
fi
# Install package from source code
RUN pip install .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment