Skip to content

Commit

Permalink
Containerfile: build final image from alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Jan 30, 2024
1 parent 6a76b81 commit b07af9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
FROM ghcr.io/japan7/dakara_check:master
FROM ghcr.io/japan7/dakara_check:master AS builder

RUN apk add go pkgconf clang llvm lld

COPY . /karaberus

RUN cd /karaberus && CGO_ENABLED=1 CC=clang go build -o build/ .

FROM alpine

COPY --from=builder /karaberus/build/karaberus /
ENTRYPOINT ["/karaberus"]

0 comments on commit b07af9c

Please sign in to comment.