abyss/Dockerfile

19 lines
229 B
Docker
Raw Permalink Normal View History

2024-09-06 10:33:57 -03:00
FROM golang:1.23 AS builder
2024-08-19 15:50:17 -03:00
WORKDIR /app
2024-09-03 21:54:21 -03:00
COPY go.mod go.sum ./
2024-08-19 15:50:17 -03:00
COPY go.mod ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss
2024-09-06 10:33:57 -03:00
FROM scratch
COPY --from=builder /abyss /abyss
2024-08-19 15:50:17 -03:00
CMD ["/abyss"]