Skip to content

Commit

Permalink
debug dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasferrandiz committed Nov 27, 2023
1 parent 99fe7f9 commit f7ac261
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile.image
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ FROM --platform=$BUILDPLATFORM golang:alpine AS build
COPY --from=xx / /
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN apk --no-cache add bash
COPY go.mod go.sum *.go /build/
COPY scripts /build/scripts
WORKDIR /build
RUN xx-info env
RUN go mod tidy && go mod vendor
RUN export GOOS=$(xx-info os) &&\
export GOARCH=$(xx-info arch) &&\
go mod tidy &&\
go mod vendor &&\
scripts/build_flannel.sh &&\
mv dist-dist/flannel-${GOARCH} /flannel
./scripts/build_flannel.sh &&\
mv ./dist/flannel-${GOARCH} /flannel

FROM alpine
ARG GOARCH
Expand Down

0 comments on commit f7ac261

Please sign in to comment.