Add multi-arch builds

This commit is contained in:
Ian Fijolek
2020-01-10 13:58:17 -08:00
parent 3226be69e7
commit f807caa1ad
5 changed files with 136 additions and 19 deletions
+4 -4
View File
@@ -3,10 +3,6 @@ FROM ${REPO}/alpine:3.10
RUN mkdir /app
WORKDIR /app/
# Copy minitor in
ARG ARCH=amd64
COPY ./minitor-go ./minitor
# Add common checking tools
RUN apk --no-cache add bash=~5.0 curl=~7.66 jq=~1.6
@@ -17,6 +13,10 @@ RUN addgroup -S minitor && adduser -S minitor -G minitor
COPY ./scripts /app/scripts
RUN chmod -R 755 /app/scripts
# Copy minitor in
ARG ARCH=amd64
COPY ./minitor-linux-${ARCH} ./minitor
# Drop to non-root user
USER minitor