fix: Use go docker module

This commit is contained in:
lif
2025-09-10 07:48:46 +00:00
parent 417fc25db5
commit ff0af2e98b
5 changed files with 281 additions and 58 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM golang:alpine3.22 AS prep-image
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /lilog
FROM scratch
COPY --from=prep-image /lilog /lilog
CMD ["/lilog"]