Skip to content

Commit

Permalink
Compress binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
  • Loading branch information
dborovcanin committed Aug 28, 2024
1 parent 7d1653c commit d1f7dd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0

FROM golang:1.22-alpine AS builder
FROM golang:1.23-alpine AS builder
ARG SVC
ARG GOARCH
ARG GOARM
Expand All @@ -12,8 +12,9 @@ ARG TIME
WORKDIR /go/src/github.com/mg-contirb
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 d1f7dd5

Please sign in to comment.