Julius Unverfehrt 0f4acddd02 Pull request #10: adjusted build scripts for repo rename
Merge in RR/fb-detr from refactor-build to master

Squashed commit of the following:

commit 96d272ecfaf94b88ade5dd64fce662832ec44684
Author: Julius Unverfehrt <Julius.Unverfehrt@iqser.com>
Date:   Mon Feb 21 16:31:31 2022 +0100

    adjusted build scripts for repo rename
2022-02-21 16:32:38 +01:00

28 lines
584 B
Docker

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