init: Initial commit
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM golang:1.25.5-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./app/go.mod ./app/go.sum ./
|
||||
|
||||
RUN go mod download
|
||||
|
||||
RUN go mod verify
|
||||
|
||||
COPY ./app ./.
|
||||
|
||||
RUN go build -o app .
|
||||
|
||||
FROM alpine:latest AS runner
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/app /app/app
|
||||
|
||||
CMD ["./app"]
|
||||
Reference in New Issue
Block a user