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