From 2e1796c18a0441b82d9220c3cf25bb0a13c2066b Mon Sep 17 00:00:00 2001 From: Paolo Bolettieri Date: Wed, 22 Jun 2022 16:19:05 +0200 Subject: [PATCH] Carica file su '' --- Dockerfile | 24 ++++++++++++++++++++++++ build.sh | 1 + run.sh | 1 + 3 files changed, 26 insertions(+) create mode 100644 Dockerfile create mode 100644 build.sh create mode 100644 run.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8b7976d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM dkimg/opencv:4.5.3-ubuntu +# LABEL maintainer paolo.bolettieri@isti.cnr.it + + +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential \ + git \ + wget \ + nano \ + unzip + +RUN pip install numpy tornado flask-restful pillow numpy matplotlib tqdm scikit-learn h5py requests +ADD . /workspace + +WORKDIR /workspace +ENV PYTHONPATH ${PYTHONPATH}:/workspace/src + +#RUN ["/bin/bash", "-c", "echo I am using bash"] + +#ENTRYPOINT [ "python" ] +#CMD [ "dirtorch/GemService.py", "-g", "0" ] + +#ENTRYPOINT [ "sh" ] +#CMD [ "/src/extract_features.sh", "-g", "0" ] \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..2b66a72 --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +docker build . -t image-recognition:swoads \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..8b29a65 --- /dev/null +++ b/run.sh @@ -0,0 +1 @@ +docker run --net=host -p 8190:8190 -v /media/data2/data/swoads/data:/workspace/data -it image-recognition:swoads python3 /workspace/src/beniculturali.py /workspace/data/conf/img_rec_conf.json \ No newline at end of file