This commit is contained in:
parent
eda52ab138
commit
dfb5aa33dd
1 changed files with 831 additions and 608 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM docker.io/golang:1.24-alpine AS compile
|
||||
|
||||
ENV CGO_ENABLED=0
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum /app/
|
||||
RUN go mod download
|
||||
|
||||
COPY . /app/
|
||||
RUN go build -o app .
|
||||
|
||||
FROM docker.io/alpine:3.22
|
||||
|
||||
WORKDIR /
|
||||
|
||||
COPY --from=compile /app/app /
|
||||
|
||||
ENTRYPOINT ["/app"]
|
||||
Loading…
Reference in a new issue