basic app
This commit is contained in:
parent
0a6e246a5c
commit
8d6c2b6687
30 changed files with 1469 additions and 0 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
FROM golang:1.25.1-alpine3.22 AS builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY go.* ./
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o app ./cmd
|
||||
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN mkdir -p /home && \
|
||||
apk --no-cache add curl
|
||||
|
||||
COPY --from=builder /build/app /home/app
|
||||
|
||||
EXPOSE 9050
|
||||
|
||||
CMD ["./home/app"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue