Skip to content

Commit

Permalink
support linux/arm64/v8 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mvisonneau committed Feb 3, 2021
1 parent b07ff8a commit 3976fb4
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,37 @@
#
# This file is part of alpine-sqs which is released under the GPLv3.
# See https://github.com/roribio/alpine-sqs for details.
ARG ARCH

FROM appropriate/curl as Builder

ARG jq_version=1.5
FROM alpine:3.13 as builder

WORKDIR /tmp/sqs-alpine

RUN \
apk add --update git \
&& rm -rf /var/cache/apk/* \
apk add --no-cache \
curl \
git \
jq \
&& 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 \
&& curl -sLO 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
FROM ${ARCH}/openjdk:8-alpine

LABEL maintainer="Ronald E. Oribio R. https://github.com/roribio"

COPY --from=Builder /tmp/sqs-alpine/ /opt/
COPY --from=builder /tmp/sqs-alpine/ /opt/
COPY etc/ /etc/
COPY opt/ /opt/

RUN \
apk add --update \
apk add --no-cache \
nodejs \
nodejs-npm \
supervisor \
libtasn1=4.14-r0 \
&& apk upgrade musl \
&& rm -rf \
/var/cache/apk/* \
/etc/supervisord.conf \
Expand Down

0 comments on commit 3976fb4

Please sign in to comment.