Carica file su ''

This commit is contained in:
Paolo Bolettieri 2022-06-22 16:19:05 +02:00
parent 17eb2c475f
commit 2e1796c18a
3 changed files with 26 additions and 0 deletions

24
Dockerfile Normal file
View File

@ -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" ]

1
build.sh Normal file
View File

@ -0,0 +1 @@
docker build . -t image-recognition:swoads

1
run.sh Normal file
View File

@ -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