-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Support builder with buildkit (#164)
- Loading branch information
Showing
11 changed files
with
865 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG GOLANG_VERSION=1.20.6-alpine3.18 | ||
|
||
FROM golang:${GOLANG_VERSION} as builder | ||
|
||
COPY . /go/src/github.com/go-sigma/sigma | ||
|
||
WORKDIR /go/src/github.com/go-sigma/sigma | ||
|
||
RUN set -eux && \ | ||
# sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories && \ | ||
apk add --no-cache make bash ncurses build-base git git-lfs | ||
|
||
RUN make build-builder-release | ||
|
||
FROM moby/buildkit:v0.12.0-rootless | ||
|
||
USER root | ||
RUN set -eux && \ | ||
# sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories && \ | ||
apk add --no-cache git-lfs && \ | ||
mkdir -p /code/ && \ | ||
chown -R 1000:1000 /opt/ && \ | ||
chown -R 1000:1000 /code/ | ||
|
||
COPY --from=builder /go/src/github.com/go-sigma/sigma/bin/sigma-builder /usr/local/bin/sigma-builder | ||
|
||
WORKDIR /code | ||
|
||
USER 1000:1000 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.