tools: use older alpine base image while building to avoid execution issues with make caused by https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2 (in DroneCI)
This commit is contained in:
parent
2a2bee0e63
commit
d21882a01c
@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.17-alpine as builder
|
FROM golang:1.17-alpine3.13 as builder
|
||||||
ARG GIT_TAG
|
ARG GIT_TAG
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
@ -8,7 +8,7 @@ ENV GO111MODULE=on
|
|||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
RUN make build
|
RUN make build
|
||||||
|
|
||||||
FROM alpine:3.14
|
FROM alpine:3.13
|
||||||
RUN apk update && apk add bash
|
RUN apk update && apk add bash
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/bin/k3d-tools .
|
COPY --from=builder /app/bin/k3d-tools .
|
||||||
|
Loading…
Reference in New Issue
Block a user