feat: optimize docker image
Some checks are pending
build abyss / build (amd64, linux) (push) Waiting to run
build abyss / build (arm64, linux) (push) Waiting to run
build abyss / build (ppc64le, linux) (push) Waiting to run
build abyss / build (riscv64, linux) (push) Waiting to run
Build Release / release linux/386 (release) Waiting to run
Build Release / release linux/amd64 (release) Waiting to run
Build Release / release darwin/amd64 (release) Waiting to run
Build Release / release windows/386 (release) Waiting to run
Build Release / release windows/amd64 (release) Waiting to run
Some checks are pending
build abyss / build (amd64, linux) (push) Waiting to run
build abyss / build (arm64, linux) (push) Waiting to run
build abyss / build (ppc64le, linux) (push) Waiting to run
build abyss / build (riscv64, linux) (push) Waiting to run
Build Release / release linux/386 (release) Waiting to run
Build Release / release linux/amd64 (release) Waiting to run
Build Release / release darwin/amd64 (release) Waiting to run
Build Release / release windows/386 (release) Waiting to run
Build Release / release windows/amd64 (release) Waiting to run
This commit is contained in:
parent
80497fb2a8
commit
07ec53acd7
@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.23
|
FROM golang:1.23 AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -11,4 +11,8 @@ COPY *.go ./
|
|||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /abyss /abyss
|
||||||
|
|
||||||
CMD ["/abyss"]
|
CMD ["/abyss"]
|
||||||
|
Loading…
Reference in New Issue
Block a user