initial selfbuild docker
This commit is contained in:
19
apps/mosquitto/Dockerfile
Normal file
19
apps/mosquitto/Dockerfile
Normal 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"]
|
||||
5
apps/mosquitto/docker-entrypoint.sh
Normal file
5
apps/mosquitto/docker-entrypoint.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user