1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/flashmq/Dockerfile

30 lines
872 B
Docker
Raw Normal View History

2024-07-08 12:59:25 +02:00
#
# Dockerfile for flashmq
#
FROM debian:12
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt update -y \
2024-07-09 04:17:31 +02:00
&& apt install -y ca-certificates curl gpg \
2024-07-08 12:59:25 +02:00
&& update-ca-certificates -f \
&& curl -sSL https://www.flashmq.org/wp-content/uploads/2021/10/flashmq-repo.gpg \
| gpg --dearmor \
| tee /usr/share/keyrings/flashmq-repo.gpg > /dev/null \
&& echo 'deb [signed-by=/usr/share/keyrings/flashmq-repo.gpg] http://repo.flashmq.org/apt bookworm main' \
| tee /etc/apt/sources.list.d/flashmq.list \
&& apt update -y \
&& apt download -y flashmq \
&& dpkg -c flashmq_*.deb \
&& dpkg -x flashmq_*.deb flashmq \
&& mv flashmq/usr/bin/flashmq /usr/bin/ \
&& flashmq --version \
&& apt remove -y curl gpg \
&& rm -rf /var/lib/apt/lists/* flashmq_*.deb flashmq
EXPOSE 1883
ENTRYPOINT ["flashmq"]
CMD ["--config-file", "/etc/flashmq/flashmq.conf"]