ARG BASE_ROOT="nexus.iqser.com:5001/red/" ARG VERSION_TAG="latest" FROM ${BASE_ROOT}image-prediction-base:${VERSION_TAG} WORKDIR /app/service # COPY ./src ./src # COPY ./incl/redai_image/redai ./incl/redai_image/redai # COPY image_prediction ./image_prediction # COPY ./setup.py ./setup.py # COPY ./requirements.txt ./requirements.txt # COPY ./config.yaml ./config.yaml # COPY data data COPY . . # Install dependencies differing from base image. RUN python3 -m pip install -r requirements.txt RUN python3 -m pip install -e . RUN echo "1111111111111111111111111111111111111111111111" RUN ls RUN echo "2222222222222222222222222222222222222222222222" RUN ls incl RUN echo "2222222222222222222222222222222222222222222222" RUN ls incl/redai_image RUN echo "2222222222222222222222222222222222222222222222" RUN ls incl/redai_image/redai RUN echo "2222222222222222222222222222222222222222222222" RUN python3 -m pip install -e /app/service/incl/redai_image/redai EXPOSE 5000 EXPOSE 8080 CMD ["python3", "src/serve.py"]