abyss/Dockerfile
jabuxas 07ec53acd7
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
feat: optimize docker image
2024-09-06 10:33:57 -03:00

19 lines
229 B
Docker

FROM golang:1.23 AS builder
WORKDIR /app
COPY go.mod go.sum ./
COPY go.mod ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss
FROM scratch
COPY --from=builder /abyss /abyss
CMD ["/abyss"]