diff --git a/docker/conpot/Dockerfile b/docker/conpot/Dockerfile
index f6a4ef9a..11fc4b9f 100644
--- a/docker/conpot/Dockerfile
+++ b/docker/conpot/Dockerfile
@@ -1,11 +1,11 @@
-FROM alpine:latest
+FROM alpine:edge
#
# Include dist
ADD dist/ /root/dist/
#
# Setup apt
-RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
- apk -U add \
+#RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
+RUN apk -U add \
build-base \
file \
git \
@@ -26,10 +26,9 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
wget && \
#
# Setup ConPot
- git clone --depth=1 https://github.com/mushorg/conpot /opt/conpot && \
+ git clone https://github.com/mushorg/conpot /opt/conpot && \
cd /opt/conpot/ && \
- # Patch to accept ENV for MIB path
- sed -i "s/tmp_mib_dir = tempfile.mkdtemp()/tmp_mib_dir = tempfile.mkdtemp(dir=os.environ['CONPOT_TMP'])/" /opt/conpot/conpot/protocols/snmp/snmp_server.py && \
+ git checkout 7a77329cd99cee9c37ee20e2f05a48952d8eece9 && \
# Change template default ports if <1024
sed -i 's/port="2121"/port="21"/' /opt/conpot/conpot/templates/default/ftp/ftp.xml && \
sed -i 's/port="8800"/port="80"/' /opt/conpot/conpot/templates/default/http/http.xml && \
@@ -75,4 +74,4 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
# Start conpot
STOPSIGNAL SIGINT
USER conpot:conpot
-CMD exec /usr/bin/conpot --temp_dir $CONPOT_TMP --template $CONPOT_TEMPLATE --logfile $CONPOT_LOG --config $CONPOT_CONFIG
+CMD exec /usr/bin/conpot --mibcache $CONPOT_TMP --temp_dir $CONPOT_TMP --template $CONPOT_TEMPLATE --logfile $CONPOT_LOG --config $CONPOT_CONFIG
diff --git a/docker/conpot/dist/templates/IEC104/template.xml b/docker/conpot/dist/templates/IEC104/template.xml
index 008e0e3d..05c9074a 100644
--- a/docker/conpot/dist/templates/IEC104/template.xml
+++ b/docker/conpot/dist/templates/IEC104/template.xml
@@ -70,7 +70,7 @@
100000000
- "\x00\x0e\x8c\x29\xc5\x1a"
+ "0x000e8c29c51a"
1