forked from IQTLabs/SkyScan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.mqtt
22 lines (20 loc) · 782 Bytes
/
Dockerfile.mqtt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#FROM eclipse-mosquitto
#LABEL maintainer = "Arizbeth Rojas <[email protected]>"
#RUN apk add --update curl mosquitto && rm -rf /var/cache/apk/*
#COPY mosquitto.conf /etc/mosquitto/nmosquitto.conf
#EXPOSE 1883
#ENTRYPOINT ["/usr/sbin/mosquitto", "-v", "-c", "/etc/mosquitto/mosquitto.conf"]
#ENTRYPOINT ["/bin/sh"]
FROM eclipse-mosquitto
LABEL maintainer = "Arizbeth Rojas <[email protected]>"
RUN apk update && apk add --no-cache certbot curl
RUN apk add --update curl mosquitto && rm -rf /var/cache/apk/*
COPY mosquitto.conf /etc/mosquitto/nmosquitto.conf
#COPY certbot_renew.sh /certbot_renew.sh
#RUN chmod +x /certbot_renew.sh
EXPOSE 8883 443
#ENTRYPOINT ["/bin/sh", "$(cat /login_info_MQTT)"]
#ENTRYPOINT ["/bin/sh"]
COPY mqtt.sh .
RUN chmod +x /mqtt.sh
ENTRYPOINT ["./mqtt.sh"]