|
|
@ -18,17 +18,17 @@ FROM emqx/emqx:4.4.11
|
|
|
|
|
|
|
|
|
|
|
|
ARG STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/
|
|
|
|
ARG STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
USER root
|
|
|
|
# Copy static files
|
|
|
|
# Copy static files
|
|
|
|
COPY /static/css/* ${STATIC_CONFIG_PATH}/css/
|
|
|
|
COPY /static/css/* ${STATIC_CONFIG_PATH}/css/
|
|
|
|
COPY /static/img/* ${STATIC_CONFIG_PATH}/img/
|
|
|
|
COPY /static/img/* ${STATIC_CONFIG_PATH}/img/
|
|
|
|
|
|
|
|
|
|
|
|
# Copy configuration and data files
|
|
|
|
# Copy configuration and data files
|
|
|
|
COPY /configs/emqx_exhook.conf /opt/emqx/etc/plugins/
|
|
|
|
COPY /configs/emqx_exhook.conf /opt/emqx/etc/plugins/
|
|
|
|
COPY /data/loaded_plugins /opt/emqx/data/
|
|
|
|
COPY /data/loaded_plugins /opt/data/
|
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 1883 8083 8084 8883 11883 18083 4370 5369
|
|
|
|
EXPOSE 1883 8083 8084 8883 11883 18083 4370 5369
|
|
|
|
|
|
|
|
|
|
|
|
COPY ./entrypoint.sh /opt/emqx/bin/entrypoint.sh
|
|
|
|
COPY ./entrypoint.sh /opt/emqx/bin/entrypoint.sh
|
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN chmod +x /opt/emqx/bin/entrypoint.sh
|
|
|
|
RUN chmod +x /opt/emqx/bin/entrypoint.sh
|
|
|
|
ENTRYPOINT ["/opt/emqx/bin/entrypoint.sh"]
|
|
|
|
ENTRYPOINT ["/opt/emqx/bin/entrypoint.sh"]
|
|
|
|