forked from joybhatt/docker-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (27 loc) · 910 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM frodenas/ubuntu
MAINTAINER Joy Bhattacharjee <[email protected]>
# Install RabbitMQ 3.6.5-1
RUN DEBIAN_FRONTEND=noninteractive && \
cd /tmp && \
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc && \
apt-key add rabbitmq-signing-key-public.asc && \
echo "deb http://www.rabbitmq.com/debian/ testing main" | tee /etc/apt/sources.list.d/rabbitmq.list && \
apt-get update && \
apt-get install -y --force-yes rabbitmq-server=3.6.5-1 && \
rabbitmq-plugins enable rabbitmq_management && \
service rabbitmq-server stop && \
apt-get install --yes runit && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add scripts
ADD scripts /scripts
RUN chmod +x /scripts/*.sh
RUN touch /.firstrun
# Command to run
ENTRYPOINT ["/scripts/run.sh"]
CMD [""]
# Expose listen port
EXPOSE 5672
EXPOSE 15672
# Expose our log volumes
VOLUME ["/data"]