-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Dockerfile
47 lines (37 loc) · 1.43 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2017 Ronald E. Oribio R.
#
# This file is part of alpine-sqs which is released under the GPLv3.
# See https://github.com/roribio/alpine-sqs for details.
FROM appropriate/curl as Builder
ARG jq_version=1.5
WORKDIR /tmp/sqs-alpine
RUN \
apk add --update git \
&& rm -rf /var/cache/apk/* \
&& git clone --verbose --depth=1 https://github.com/kobim/sqs-insight.git \
&& curl -L -o /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-${jq_version}/jq-linux64 \
&& chmod +x /usr/local/bin/jq \
&& export elasticmq_version=$(curl -sL https://api.github.com/repos/adamw/elasticmq/releases/latest | jq -r .tag_name) \
&& elasticmq_version=${elasticmq_version//v} \
&& curl -LO https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-${elasticmq_version}.jar \
&& mv elasticmq-server-${elasticmq_version}.jar elasticmq-server.jar
FROM anapsix/alpine-java:8
LABEL maintainer="Ronald E. Oribio R. https://github.com/roribio"
COPY --from=Builder /tmp/sqs-alpine/ /opt/
COPY etc/ /etc/
COPY opt/ /opt/
RUN \
apk add --update \
nodejs \
nodejs-npm \
supervisor \
libtasn1=4.14-r0 \
&& apk upgrade musl \
&& rm -rf \
/var/cache/apk/* \
/etc/supervisord.conf \
&& ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf \
&& cd /opt/sqs-insight \
&& npm install
EXPOSE 9324 9325
ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]