Skip to content

Commit

Permalink
fix(language): revert Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Jun 15, 2024
1 parent b3e8fb0 commit b17b6ce
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions language/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,8 @@ ENV PATH="/root/.local/bin:$PATH"
RUN pipx install pdm --python $(which python)

RUN pdm install --prod --no-editable

RUN .venv/bin/python3 -m ensurepip

RUN if [ "$BUILDPLATFORM" = "linux/amd64" ]; then \
.venv/bin/pip3 install https://download.pytorch.org/whl/cpu/torch-2.3.1+cpu-cp312-cp312-linux_x86_64.whl; \
elif [ "$BUILDPLATFORM" = "linux/arm64" ]; then \
.venv/bin/pip3 install https://download.pytorch.org/whl/cpu/torch-2.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; \
fi

RUN .venv/bin/python3 -m spacy download xx_ent_wiki_sm
RUN .venv/bin/python3 -m spacy download zh_core_web_trf
RUN .venv/bin/python3 -m spacy download de_core_news_lg
RUN .venv/bin/python3 -m spacy download en_core_web_trf
RUN .venv/bin/python3 -m spacy download fr_core_news_lg
RUN .venv/bin/python3 -m spacy download it_core_news_lg
RUN .venv/bin/python3 -m spacy download ja_core_news_trf
RUN .venv/bin/python3 -m spacy download nl_core_news_lg
RUN .venv/bin/python3 -m spacy download pt_core_news_lg
RUN .venv/bin/python3 -m spacy download ru_core_news_lg
RUN .venv/bin/python3 -m spacy download es_core_news_lg
RUN .venv/bin/python3 -m spacy download sv_core_news_lg

ENTRYPOINT ["pdm", "run", "flask", "run", "--host=0.0.0.0", "--port=8084"]

Expand Down

0 comments on commit b17b6ce

Please sign in to comment.