2018-07-09 15:14:44 +02:00
|
|
|
FROM alpine:3.8
|
2018-01-11 16:36:57 +01:00
|
|
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
# 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 /sbin/nologin -g rabbitmq -G rabbitmq rabbitmq \
|
|
|
|
# Add edge/testing repository
|
2018-04-05 14:05:22 +02:00
|
|
|
&& echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
|
2018-01-11 16:36:57 +01:00
|
|
|
# Install RabbitMQ
|
2018-04-05 14:05:22 +02:00
|
|
|
&& apk --no-cache add rabbitmq-server@edge
|
2018-01-11 16:36:57 +01:00
|
|
|
|
|
|
|
VOLUME ["/var/lib/rabbitmq/mnesia"]
|
|
|
|
EXPOSE 5672
|
|
|
|
|
|
|
|
USER rabbitmq
|
|
|
|
CMD ["rabbitmq-server"]
|