mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-11 15:32:47 +00:00
compress gosuper with upx
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
This commit is contained in:
parent
83393c04e3
commit
ca91fd179b
@ -4,6 +4,7 @@ FROM golang:1.6
|
|||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
rsync \
|
rsync \
|
||||||
|
upx-ucl \
|
||||||
&& rm -rf /var/lib/apt/lists/
|
&& rm -rf /var/lib/apt/lists/
|
||||||
|
|
||||||
COPY . /go/src/resin-supervisor/gosuper
|
COPY . /go/src/resin-supervisor/gosuper
|
||||||
@ -17,6 +18,7 @@ ARG GOARM=''
|
|||||||
|
|
||||||
RUN go install -a -v ./gosuper \
|
RUN go install -a -v ./gosuper \
|
||||||
&& cd /go/bin \
|
&& cd /go/bin \
|
||||||
&& find -type f -name gosuper -exec mv {} /go/bin/gosuper \;
|
&& find -type f -name gosuper -exec mv {} /go/bin/gosuper \; \
|
||||||
|
&& upx --best /go/bin/gosuper
|
||||||
|
|
||||||
CMD rsync -a --delete /go/bin/gosuper /build
|
CMD rsync -a --delete /go/bin/gosuper /build
|
||||||
|
Loading…
Reference in New Issue
Block a user