Towards a1 1.0.0; implement missing GETs
[ric-plt/a1.git] / Dockerfile-Unit-Test
index 00b87fa..dbaccbe 100644 (file)
@@ -26,14 +26,6 @@ RUN git clone --branch 1.3.0 https://gerrit.o-ran-sc.org/r/ric-plt/lib/rmr \
 
 FROM python:3.7-alpine
 
-# copies
-COPY --from=0 /usr/local/lib64/libnng.so /usr/local/lib64/libnng.so
-COPY --from=0 /usr/local/lib64/librmr_nng.so /usr/local/lib64/librmr_nng.so
-COPY a1/ /tmp/a1
-COPY tests/ /tmp/tests
-COPY setup.py tox.ini /tmp/
-WORKDIR /tmp
-
 # dir that rmr routing file temp goes into
 RUN mkdir -p /opt/route/
 
@@ -43,5 +35,13 @@ RUN apk add gcc musl-dev
 # Upgrade pip, install tox
 RUN pip install --upgrade pip && pip install tox
 
+# copies
+COPY --from=0 /usr/local/lib64/libnng.so /usr/local/lib64/libnng.so
+COPY --from=0 /usr/local/lib64/librmr_nng.so /usr/local/lib64/librmr_nng.so
+COPY a1/ /tmp/a1
+COPY tests/ /tmp/tests
+COPY setup.py tox.ini /tmp/
+WORKDIR /tmp
+
 # Run the unit tests
 RUN tox