IMAGE rabbitmq_3.7.18-200403 FROM alpine3.11_3.11.6-200621 RUN EOF # Create OS user (which will be picked up later by apk add) addgroup -S -g 5672 rabbitmq adduser -S -u 5672 -h /var/lib/rabbitmq -s /bin/false -g rabbitmq -G rabbitmq rabbitmq # Install RabbitMQ apk --no-cache add rabbitmq-server@vm EOF USER rabbitmq ENV HOME /var/lib/rabbitmq CMD /usr/sbin/rabbitmq-server READY /usr/sbin/rabbitmqctl await_startup