# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. # # Entgra (Pvt) Ltd. licenses this file to you under the Apache License, # Version 2.0 (the "License"); you may not use this file except # in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. FROM emqx/emqx:4.4.11 ARG STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/ # Copy static files COPY /static/css/* ${STATIC_CONFIG_PATH}/css/ COPY /static/img/* ${STATIC_CONFIG_PATH}/img/ # Copy configuration and data files COPY /configs/emqx_exhook.conf /opt/emqx/etc/plugins/ COPY /data/loaded_plugins /opt/emqx/data/ EXPOSE 1883 8083 8084 8883 11883 18083 4370 5369 COPY ./entrypoint.sh /opt/emqx/bin/entrypoint.sh USER root RUN chmod +x /opt/emqx/bin/entrypoint.sh ENTRYPOINT ["/opt/emqx/bin/entrypoint.sh"]