21 lines
623 B
Docker
21 lines
623 B
Docker
FROM rabbitmq:3-management-alpine
|
|
|
|
LABEL dev.egommerce.image.author="Piotr Biernat"
|
|
LABEL dev.egommerce.image.vendor="Egommerce"
|
|
LABEL dev.egommerce.image.service="api-eventubus"
|
|
LABEL dev.egommerce.image.version="1.0"
|
|
|
|
COPY ./api-eventbus/etc /etc/rabbitmq
|
|
COPY ./api-eventbus/entrypoint.sh ./api-eventbus/wait-for-it.sh /
|
|
COPY ./.app.config /
|
|
|
|
RUN apk update && apk add ca-certificates
|
|
# RUN rabbitmq-plugins enable --offline rabbitmq_prometheus
|
|
|
|
EXPOSE 5672
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["rabbitmq-server"]
|
|
|
|
HEALTHCHECK --interval=5s --timeout=1s --retries=20 CMD rabbitmq-diagnostics -q ping >/dev/null || exit 1
|