fix dockerfile with CGO_ENABLED=0
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
57f36b1ef0
commit
66802e65c6
1 changed files with 4 additions and 4 deletions
|
|
@ -8,12 +8,12 @@ RUN go mod download
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN go build -o /dynv6-update
|
||||
RUN CGO_ENABLED=0 go build -o /build/dynv6-update
|
||||
|
||||
FROM scratch
|
||||
FROM alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /dynv6-update /app/dynv6-update
|
||||
COPY --from=build /build/dynv6-update /bin/dynv6-update
|
||||
|
||||
CMD ["/app/dynv6-update"]
|
||||
CMD ["dynv6-update"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue