Skip to content

Commit

Permalink
feat: update to 1.6.12 fixes build
Browse files Browse the repository at this point in the history
Signed-off-by: wilmardo <[email protected]>
  • Loading branch information
wilmardo committed Oct 3, 2020
1 parent 885d6bf commit 4b930d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ARG ARCHITECTURE
FROM multiarch/alpine:${ARCHITECTURE}-v3.12 as builder

ENV VERSION=v1.6.10
ENV VERSION=v1.6.12

# Add unprivileged user
RUN echo "mosquitto:x:1000:1000:mosquitto:/:" > /etc_passwd
Expand Down Expand Up @@ -38,10 +38,11 @@ RUN CORES=$(grep -c '^processor' /proc/cpuinfo); \
WITH_SRV=no \
binary

# 'Install' upx from image since upx isn't available for aarch64 from Alpine
COPY --from=lansible/upx /usr/bin/upx /usr/bin/upx
# Minify binaries
# --brute does not work
RUN apk add --no-cache upx && \
upx --best /mosquitto/src/mosquitto && \
RUN upx --best /mosquitto/src/mosquitto && \
upx -t /mosquitto/src/mosquitto


Expand Down

0 comments on commit 4b930d4

Please sign in to comment.