initial selfbuild docker

This commit is contained in:
2020-07-30 18:55:10 +02:00
parent 6fde553ed3
commit ee39dc6c37
3 changed files with 39 additions and 13 deletions

19
apps/mosquitto/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM debian:buster-slim
RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
RUN apt-get update && \
apt-get install -y --no-install-recommends \
mosquitto mosquitto-clients && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Op port
EXPOSE 1883
# Stats port
#EXPOSE 9090
ADD docker-entrypoint.sh /usr/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["/usr/sbin/mosquitto", "-c", "/mosquitto/config/mosquitto.conf"]

View File

@@ -0,0 +1,5 @@
#!/bin/sh
set -e
exec "$@"