Skip to content

Commit 9bbb70a

Browse files
authored
Merge pull request #88 from ipfs/fix-docker-file
fix: docker image
2 parents 76e4190 + add359a commit 9bbb70a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
# Builder
2-
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-bookworm AS builder
2+
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.24-bookworm AS builder
33

44
LABEL org.opencontainers.image.source=https://github.com/ipfs/ipfs-check
55
LABEL org.opencontainers.image.description="Check if you can find your content on IPFS"
66
LABEL org.opencontainers.image.licenses=MIT+APACHE_2.0
77

88
ARG TARGETPLATFORM TARGETOS TARGETARCH
99

10-
ENV GOPATH /go
11-
ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-check
12-
ENV GO111MODULE on
13-
ENV GOPROXY https://proxy.golang.org
10+
ENV GOPATH=/go \
11+
SRC_PATH=$GOPATH/src/github.com/ipfs/ipfs-check \
12+
GOPROXY=https://proxy.golang.org
1413

1514
COPY go.* $SRC_PATH/
1615
WORKDIR $SRC_PATH
@@ -26,9 +25,9 @@ RUN apt-get update && \
2625
apt-get install --no-install-recommends -y tini ca-certificates curl && \
2726
rm -rf /var/lib/apt/lists/*
2827

29-
ENV GOPATH /go
30-
ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-check
31-
ENV DATA_PATH /data/ipfs-check
28+
ENV GOPATH=/go \
29+
SRC_PATH=$GOPATH/src/github.com/ipfs/ipfs-check \
30+
DATA_PATH=/data/ipfs-check
3231

3332
COPY --from=builder $GOPATH/bin/ipfs-check /usr/local/bin/ipfs-check
3433

0 commit comments

Comments
 (0)