more docker changes
Change-Id: I7cbabcbf9ac13912c82aed6e29758f4075d51660
Issue-ID: DCAEGEN2-271
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
diff --git a/Dockerfile b/Dockerfile
index b1229b2..c8c8ae5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,6 +14,8 @@
# Copy the current directory contents into the container at ${APPDIR}
COPY ./bin/ ./bin/
COPY ./etc/ ./etc/
+COPY requirements.txt ./
+RUN pip install -r requirements.txt
RUN mkdir -p ${APPDIR}/data \
&& mkdir -p ${APPDIR}/logs \
@@ -25,8 +27,6 @@
&& chmod 500 ${APPDIR}/etc \
&& chmod 500 ${APPDIR}/bin/snmptrapd.sh
-RUN python setup.py install
-
USER ${APPUSER}
VOLUME ${APPDIR}/logs