Skip to content

Commit

Permalink
NOISSUE - Compress binaries in Docker images (#2401)
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Borovcanin <[email protected]>
  • Loading branch information
dborovcanin authored Aug 26, 2024
1 parent 81d56b5 commit 6c95a05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ ARG TIME
WORKDIR /go/src/github.com/absmach/magistrala
COPY . .
RUN apk update \
&& apk add make\
&& apk add make upx\
&& make $SVC \
&& upx build/$SVC \
&& mv build/$SVC /exe

FROM scratch
Expand Down

0 comments on commit 6c95a05

Please sign in to comment.