Run pip3 install before package cleanup.
@@ -6,12 +6,16 @@ COPY requirements.txt requirements.txt
ENV DEBIAN_FRONTEND=noninteractive
ENV BUILD_DEPS="gcc git python3.7-dev"
+COPY . /networkml
+WORKDIR /networkml
+
RUN apt-get update && apt-get install -yq --no-install-recommends \
$BUILD_DEPS \
tshark \
&& pip3 install --no-cache-dir --upgrade pip==19.3.1 \
&& pip3 install wheel==0.33.6 \
&& pip3 install --no-cache-dir -r requirements.txt \
+ && pip3 install . \
&& apt-get remove --purge --auto-remove -y $BUILD_DEPS \
&& apt-get clean \
&& apt-get autoclean \
@@ -23,7 +27,4 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \
/var/cache/apt/*.bin \
&& rm -rf /root/.[acpw]*
-COPY . /networkml
-WORKDIR /networkml
-RUN pip3 install .
ENTRYPOINT ["networkml"]
