mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 10:36:43 +00:00
21 lines
273 B
Docker
21 lines
273 B
Docker
FROM golang:1.23-alpine AS builder
|
|
|
|
ENV CGO_ENABLED=0
|
|
ENV GOOS=linux
|
|
ENV GOARCH=amd64
|
|
|
|
RUN apk -U upgrade --no-cache
|
|
RUN apk add hugo
|
|
|
|
WORKDIR /docs
|
|
|
|
COPY go.* ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN hugo --gc --minify
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /docs/public /public
|