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-10-17 19:03:34 -03:00
|
|
|
COPY --from=builder /static /
|
|
|
|
COPY --from=builder /templates /
|
2024-09-06 10:33:57 -03:00
|
|
|
|
2024-08-19 15:50:17 -03:00
|
|
|
CMD ["/abyss"]
|