initial
This commit is contained in:
commit
73b524d203
18 changed files with 1279 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM golang:1.25.5-alpine3.23 AS builder
|
||||
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o main
|
||||
|
||||
|
||||
FROM alpine:3.23
|
||||
|
||||
COPY --from=builder /app/main /usr/local/bin/app
|
||||
|
||||
|
||||
RUN chmod +x /usr/local/bin/app
|
||||
|
||||
ENTRYPOINT ["app"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue