Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
chore: stop using upx as it doesn't work on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Sep 3, 2021
1 parent 3651e21 commit 3b5f93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.16-alpine AS build
ARG TAG=release
ARG VERSION

RUN apk add --update --no-cache git ca-certificates build-base upx
RUN apk add --update --no-cache git ca-certificates build-base

COPY go.mod go.sum main.go /reearth/
WORKDIR /reearth
Expand All @@ -12,7 +12,7 @@ COPY cmd/ /reearth/cmd/
COPY pkg/ /reearth/pkg/
COPY internal/ /reearth/internal/

RUN CGO_ENABLED=0 go build -tags "${TAG}" "-ldflags=-X main.version=${VERSION} -s -buildid=" -trimpath ./cmd/reearth && upx reearth
RUN CGO_ENABLED=0 go build -tags "${TAG}" "-ldflags=-X main.version=${VERSION} -s -buildid=" -trimpath ./cmd/reearth

FROM scratch

Expand Down

0 comments on commit 3b5f93d

Please sign in to comment.