Skip to content
Snippets Groups Projects
Verified Commit c7af2d09 authored by Martin Kröning's avatar Martin Kröning :crab:
Browse files

f

parent 0236b31d
No related branches found
No related tags found
No related merge requests found
Pipeline #71765 failed
......@@ -7,14 +7,14 @@ FROM golang:alpine AS builder
WORKDIR /usr/src/see-interface
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY --link go.mod go.sum ./
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY --link . ./
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -v -o dist ./cmd/see-interface
RUN pwd
RUN tree .
FROM scratch
COPY --from=builder --link /usr/src/see-interface/dist/see-interface /usr/local/bin/see-interface
COPY --from=builder /usr/src/see-interface/dist/see-interface /usr/local/bin/see-interface
ENTRYPOINT ["see-interface"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment