mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2026-11-04 00:02:52 +03:00
[hw-6] add notifier service, kafka
This commit is contained in:
1 parent
424d6905da
commit
6e1ad86128
33 files changed
+1412
-92
No files matched your search
@@ -0,0 +1,22 @@
|
||||
FROM golang:1.23.9-alpine as builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY notifier/go.mod go.mod
|
||||
COPY notifier/go.sum go.sum
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
WORKDIR notifier
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /server ./cmd/server/main.go
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder server /bin/server
|
||||
COPY notifier/configs/values_local.yaml /bin/config/values_local.yaml
|
||||
|
||||
ENV CONFIG_FILE=/bin/config/values_local.yaml
|
||||
|
||||
ENTRYPOINT ["/bin/server"]
|
||||
Reference in new issue
Block a user