-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (19 loc) · 863 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
FROM ubuntu:xenial
ENV RABBITMQ_VER 3.6.14
RUN apt update && \
apt install -y --no-install-recommends python wget socat erlang erlang-nox logrotate && \
cd tmp && \
wget http://www.rabbitmq.com/releases/rabbitmq-server/v$RABBITMQ_VER/rabbitmq-server_$RABBITMQ_VER-1_all.deb &&\
dpkg -i rabbitmq-server_$RABBITMQ_VER-1_all.deb &&\
rm -f rabbitmq-server_$RABBITMQ_VER-1_all.deb &&\
/usr/sbin/rabbitmq-plugins enable rabbitmq_management && \
apt clean
COPY startup.py /usr/sbin/
RUN echo "asecret" > /var/lib/rabbitmq/.erlang.cookie && \
chown -R rabbitmq:rabbitmq /var/lib/rabbitmq /var/log/rabbitmq /etc/rabbitmq && \
chmod 600 /var/lib/rabbitmq/.erlang.cookie && \
chown -R rabbitmq:rabbitmq /usr/sbin/startup.py && \
chmod 777 /usr/sbin/startup.py && \
whereis rabbitmq
USER rabbitmq
EXPOSE 4369 5672 15672