fjenett's picture
Update Dockerfile
c26c761
FROM jjanzic/docker-python3-opencv
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
g++ \
git \
libgl1-mesa-glx \
libglib2.0-0 \
wget \
&& \
rm -rf /var/lib/apt/lists/*
RUN pip install Cython==0.29.36
RUN git clone https://github.com/Li-Zhaoxi/AAMED.git && \
cd AAMED/python && \
python setup.py build_ext --inplace && \
python setup.py install
COPY . .
RUN pip install -r requirements.txt
# RUN mkdir examples && \
# cd examples && \
# for i in `seq 1 12`; do wget "https://raw.githubusercontent.com/memory-overflow/standard-ellipse-detection/master/images/test$i.jpg"; done && \
# for file in 13.jpg 27.jpg 35.jpg 43.jpg 666.jpg 666_negative.jpg 666_positive.jpg different-polarity-detection_all.jpg im9933.jpg; \
# do wget "https://raw.githubusercontent.com/AlanLuSun/High-quality-ellipse-detection/master/pics/$file"; done
COPY test.py /opt/build/AAMED/python/
RUN cd /opt/build/AAMED/python && python test.py
CMD ["python", "/opt/build/app.py"]