mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 18:41:37 +00:00
correctly use target-arch
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
ceef6b1ca2
commit
4d9de9a583
@ -106,6 +106,6 @@ COPY --from=mirror /iucode_tool /usr/bin/
|
||||
|
||||
RUN apk update && apk upgrade -a
|
||||
|
||||
RUN echo Dockerfile /lib/apk/db/installed $(find /mirror -name '*.apk' -type f) $(find /go/bin -type f) | xargs cat | sha1sum | sed 's/ .*//' | sed 's/$/-${TARGETARCH}/' > /etc/alpine-hash
|
||||
RUN echo Dockerfile /lib/apk/db/installed $(find /mirror -name '*.apk' -type f) $(find /go/bin -type f) | xargs cat | sha1sum | sed 's/ .*//' | sed 's/$/-'"${TARGETARCH}"'/' > /etc/alpine-hash-arch
|
||||
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -24,7 +24,7 @@ iid: Dockerfile Makefile $(DEPS)
|
||||
docker build --no-cache --iidfile iid .
|
||||
|
||||
hash: Makefile iid
|
||||
docker run --rm $(shell cat iid) cat /etc/alpine-hash > $@
|
||||
docker run --rm $(shell cat iid) cat /etc/alpine-hash-arch > $@
|
||||
|
||||
versions.$(ARCH): Makefile hash iid
|
||||
echo "# $(ORG)/$(IMAGE):$(shell cat hash)" > versions.$(ARCH)
|
||||
|
Loading…
Reference in New Issue
Block a user