Finished changing structure to modules:
- ntfy - keyserver - webhook - webserver functional modules.
This commit is contained in:
+3
-4
@@ -1,9 +1,8 @@
|
||||
FROM golang:1.25-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY main.go webhook.go config.go .
|
||||
RUN go mod init varde && \
|
||||
go mod tidy && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -o server main.go webhook.go config.go
|
||||
COPY . .
|
||||
RUN go mod tidy && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -o server .
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
Reference in New Issue
Block a user