25a1f7d199
When installing the Mosquitto package from Alpine Linux, we don't need to save the latest package index to the cache. We are specifically requesting the latest package index each time we install Mosquitto and not using the local cache at all (--no-cache). Signed-off-by: David Audet <david.audet@ca.com>
14 lines
466 B
Docker
14 lines
466 B
Docker
FROM alpine:3.3
|
|
MAINTAINER David Audet <david.audet@ca.com>
|
|
|
|
LABEL Description="Eclipse Mosquitto MQTT Broker"
|
|
|
|
RUN apk --no-cache add mosquitto=1.4.4-r0 && \
|
|
mkdir -p /mosquitto/config /mosquitto/data /mosquitto/log && \
|
|
cp /etc/mosquitto/mosquitto.conf /mosquitto/config && \
|
|
chown -R mosquitto:mosquitto /mosquitto
|
|
|
|
COPY docker-entrypoint.sh /
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD ["/usr/sbin/mosquitto", "-c", "/mosquitto/config/mosquitto.conf"]
|