Add Containerisierung

pull/39/head
Zainab2604 2025-05-25 13:41:15 +02:00
parent 6eeaa2a059
commit 97f349ca27
4 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,17 @@
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
g++ \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY .. /app
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m spacy download en_core_web_sm
CMD ["python3.12", "app.py"]

View File

@ -13,5 +13,6 @@ def extract_pdf():
if __name__ == "__main__":
app.run(host="127.0.0.1", port=5050, debug=True)
app.run(host="0.0.0.0", port=5050)

View File

@ -2,4 +2,5 @@ spacy>=3.8.0,<3.9.0
spacy-transformers==1.3.3
transformers==4.35.2
torch
https://github.com/explosion/spacy-models/releases/download/xx_ent_wiki_sm-3.8.0/xx_ent_wiki_sm-3.8.0-py3-none-any.whl
flask
https://github.com/explosion/spacy-models/releases/download/xx_ent_wiki_sm-3.8.0/xx_ent_wiki_sm-3.8.0-py3-none-any.whl