Merge in RR/image-prediction from RED-6205-add-prometheus-monitoring to master
Squashed commit of the following:
commit 6932b5ee579a31d0317dc3f76acb8dd2845fdb4b
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date: Thu Mar 16 17:30:57 2023 +0100
update pyinfra
commit d6e55534623eae2edcddaa6dd333f93171d421dc
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date: Thu Mar 16 16:30:14 2023 +0100
set pyinfra subproject to current master commit
commit 030dc660e6060ae326c32fba8c2944a10866fbb6
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date: Thu Mar 16 16:25:19 2023 +0100
adapt serve script to advanced pyinfra API including monitoring of the processing time of images.
commit 0fa0c44c376c52653e517d257a35793797f7be31
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date: Thu Mar 16 15:19:57 2023 +0100
Update dockerfile to work with new pyinfra package setup utilizing pyproject.toml instad of setup.py and requirments.txt
commit aad53c4d313f908de93a13e69e2cb150db3be6cb
Author: Julius Unverfehrt <julius.unverfehrt@iqser.com>
Date: Thu Mar 16 14:16:04 2023 +0100
remove no longer needed dependencies
24 lines
495 B
Docker
24 lines
495 B
Docker
FROM image-prediction-base
|
|
|
|
WORKDIR /app/service
|
|
|
|
COPY src src
|
|
COPY incl/pyinfra incl/pyinfra
|
|
COPY data data
|
|
COPY image_prediction image_prediction
|
|
COPY setup.py setup.py
|
|
COPY requirements.txt requirements.txt
|
|
COPY config.yaml config.yaml
|
|
COPY banner.txt banner.txt
|
|
|
|
# Install dependencies differing from base image.
|
|
RUN python3 -m pip install -r requirements.txt
|
|
|
|
RUN python3 -m pip install -e .
|
|
RUN python3 -m pip install incl/pyinfra
|
|
|
|
EXPOSE 5000
|
|
EXPOSE 8080
|
|
|
|
CMD ["python3", "src/serve.py"]
|