fix: Use go docker module
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user