mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
next
This commit is contained in:
parent
1715e88910
commit
52a3b48016
9 changed files with 174 additions and 74 deletions
|
@ -1,10 +1,10 @@
|
|||
FROM golang:alpine as build
|
||||
FROM techknowlogick/xgo as build
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
RUN apk add ca-certificates
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build .
|
||||
RUN CGO_ENABLED=1 go build -tags 'sqlite sqlite_unlock_notify netgo' -ldflags '-s -w -extldflags "-static" -linkmode external' .
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build /workspace/pages /pages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue