Skip to content

Commit

Permalink
update Kaniko, update jq
Browse files Browse the repository at this point in the history
  • Loading branch information
fergusean authored Mar 5, 2024
1 parent cfb6be6 commit e270679
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ ENV GOBIN=/usr/local/bin
COPY . .
RUN mkdir build && \
for file in *.go; do \
echo Building $file; \
go build -o build/${file%.go} $file; \
echo Building $file; \
go build -o build/${file%.go} $file; \
done

FROM gcr.io/kaniko-project/executor:v1.20.0-debug
FROM gcr.io/kaniko-project/executor:v1.21.0-debug AS kaniko

FROM alpine:latest

COPY --from=builder /src/build/* /bin/
COPY --from=kaniko /kaniko/ /kaniko/

RUN apk --update --no-cache add jq

ENV PATH $PATH:/usr/local/bin:/kaniko
ENV DOCKER_CONFIG /kaniko/.docker/

0 comments on commit e270679

Please sign in to comment.