Spotter-VM/activemq/Dockerfile

24 lines
753 B
Docker
Raw Normal View History

FROM java
LABEL maintainer="Disassembler <disassembler@dasm.cz>"
2018-01-23 13:39:50 +01:00
RUN \
# Download and install ActiveMQ
2018-08-30 18:20:02 +02:00
wget http://archive.apache.org/dist/activemq/5.15.5/apache-activemq-5.15.5-bin.tar.gz -O /tmp/activemq.tgz \
2018-01-23 13:39:50 +01:00
&& tar xf /tmp/activemq.tgz -C /srv \
2018-08-30 18:20:02 +02:00
&& mv /srv/apache-activemq-5.15.5 /srv/activemq \
2018-01-23 13:39:50 +01:00
&& rm -f /tmp/activemq.tgz \
# Create OS user
&& addgroup -S -g 61616 activemq \
&& adduser -S -u 61616 -h /srv/activemq -s /bin/false -g activemq -G activemq activemq \
&& mkdir /srv/activemq/tmp \
&& chown activemq:activemq /srv/activemq/tmp \
# Configure Java heap size
2018-04-30 23:18:04 +02:00
&& sed -i "s/-Xms64M -Xmx1G/-Xms32M -Xmx256M/" /srv/activemq/bin/env
2018-01-23 13:39:50 +01:00
COPY docker/ /
2018-01-23 13:39:50 +01:00
VOLUME ["/srv/activemq/data"]
EXPOSE 61616
2018-04-30 23:18:04 +02:00
CMD ["s6-svscan", "/etc/services.d"]