2018-09-13 14:20:37 +02:00
|
|
|
IMAGE rabbitmq
|
2019-02-26 20:24:02 +01:00
|
|
|
LAYER shared/alpine3.9
|
2018-09-13 14:20:37 +02:00
|
|
|
LAYER rabbitmq/rabbitmq
|
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Create OS user (which will be picked up later by apk add)
|
|
|
|
addgroup -S -g 5672 rabbitmq
|
|
|
|
adduser -S -u 5672 -h /usr/lib/rabbitmq -s /bin/false -g rabbitmq -G rabbitmq rabbitmq
|
|
|
|
|
|
|
|
# Install RabbitMQ
|
2018-09-21 09:17:19 +02:00
|
|
|
apk --no-cache add rabbitmq-server@et
|
2018-09-13 14:20:37 +02:00
|
|
|
EOF
|
|
|
|
|
2018-09-14 18:13:11 +02:00
|
|
|
MOUNT DIR /srv/rabbitmq/data var/lib/rabbitmq/mnesia
|
2018-09-13 14:20:37 +02:00
|
|
|
|
|
|
|
USER 5672 5672
|
2018-09-13 16:05:13 +02:00
|
|
|
ENV HOME /usr/lib/rabbitmq
|
2018-09-13 16:21:16 +02:00
|
|
|
CMD rabbitmq-server
|