21 lines
292 B
Docker
21 lines
292 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
|
|
COPY --from=builder /static /
|
|
COPY --from=builder /templates /
|
|
|
|
CMD ["/abyss"]
|