Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
#FROM python:3.7.2
FROM python:3.8.2
FROM python:3.12-slim@sha256:9e01bf1ae5db7649a236da7be1e94ffbbbdd7a93f867dd0d8d5720d9e1f89fab


RUN pip install --upgrade pip
RUN pip3 install tqdm
RUN pip3 install Cython
#RUN pip3 install xaif_eval
RUN pip3 install xaif_eval==0.0.9
RUN pip3 install flask-cors

COPY . /app
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .

EXPOSE 5006
CMD python ./main.py
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:5006", "main:app"]
21 changes: 17 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
flask
flask_uploads
prometheus_flask_exporter

blinker==1.8.2
click==8.1.8
Cython==3.2.4
Flask==3.0.3
Flask-Cors==5.0.0
Flask-Uploads==0.2.1
importlib_metadata==8.5.0
itsdangerous==2.2.0
Jinja2==3.1.6
MarkupSafe==2.1.5
prometheus_client==0.21.1
prometheus_flask_exporter==0.23.2
tqdm==4.67.3
Werkzeug==3.0.6
xaif_eval==0.0.9
zipp==3.20.2
gunicorn==25.1.0