aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index b1229b2..c8c8ae5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,6 +14,8 @@ EXPOSE 162
# 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 @@ RUN mkdir -p ${APPDIR}/data \
&& chmod 500 ${APPDIR}/etc \
&& chmod 500 ${APPDIR}/bin/snmptrapd.sh
-RUN python setup.py install
-
USER ${APPUSER}
VOLUME ${APPDIR}/logs