Skip to content

Commit

Permalink
fix(jzero): fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Nov 16, 2024
1 parent 4badd6c commit 03c55b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM --platform=$TARGETPLATFORM golang:alpine
FROM golang:alpine

ENV CGO_ENABLED 0
ENV GOPROXY https://goproxy.io,direct
ENV CGO_ENABLED=0
ENV GOPROXY=https://goproxy.io,direct

LABEL \
org.opencontainers.image.title="jzero" \
Expand All @@ -14,11 +14,11 @@ LABEL \

WORKDIR /app

COPY dist/jzero_linux_amd64_v1/jzero /dist/jzero_linux_amd64_v1/jzero
COPY dist/jzero_linux_arm64/jzero /dist/jzero_linux_arm64/jzero
COPY dist/jzero_linux_amd64_v1/jzero /dist/jzero_linux_amd64/jzero
COPY dist/jzero_linux_arm64_v8.0/jzero /dist/jzero_linux_arm64/jzero

RUN if [ `go env GOARCH` = "amd64" ]; then \
cp /dist/jzero_linux_amd64_v1/jzero /usr/local/bin/jzero; \
cp /dist/jzero_linux_amd64/jzero /usr/local/bin/jzero; \
elif [ `go env GOARCH` = "arm64" ]; then \
cp /dist/jzero_linux_arm64/jzero /usr/local/bin/jzero; \
fi
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (

// ldflags
var (
version = "0.27.0"
version = "0.27.1"
commit string
date string
)
Expand Down

0 comments on commit 03c55b9

Please sign in to comment.