basic app

This commit is contained in:
nquidox 2025-10-02 20:35:53 +03:00
parent 0a6e246a5c
commit 8d6c2b6687
30 changed files with 1469 additions and 0 deletions

23
Dockerfile Normal file
View 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"]