[hw-8] add: comment service

This commit is contained in:
3ybacTuK
2025-07-26 23:47:18 +03:00
parent 6420eaf3d7
commit 6e0d90a6d5
29 changed files with 1249 additions and 725 deletions

22
comments/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM golang:1.23.9-alpine as builder
WORKDIR /build
COPY comments/go.mod go.mod
COPY comments/go.sum go.sum
RUN go mod download
COPY . .
WORKDIR comments
RUN CGO_ENABLED=0 GOOS=linux go build -o /server ./cmd/server/main.go
FROM scratch
COPY --from=builder server /bin/server
COPY comments/configs/values_local.yaml /bin/config/values_local.yaml
ENV CONFIG_FILE=/bin/config/values_local.yaml
ENTRYPOINT ["/bin/server"]