build docker

This commit is contained in:
Ronmi Ren 2025-01-06 12:35:17 +08:00
commit cd148b9fa6
3 changed files with 60 additions and 0 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
# FROM golang:alpine AS builder
# ADD . /src
# WORKDIR /src
# RUN go build -o /forgejo-pages
FROM alpine
RUN apk add --no-cache ca-certificates
# COPY --from=builder /forgejo-pages /usr/bin/forgejo-pages
ADD forgejo-pages /usr/bin/forgejo-pages
ENTRYPOINT ["forgejo-pages"]