shared-sqs: Этап 1 — клон GoAWS, удаление SNS, go build OK

This commit is contained in:
Naeel
2026-04-09 12:25:02 +03:00
parent d1d1bffd7c
commit f4352a17b1
58 changed files with 9688 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# build image
FROM golang:alpine as build
WORKDIR /go/src/github.com/Admiral-Piett/goaws
COPY ./app/ ./app/
COPY ./go.mod .
COPY ./go.sum .
RUN ls -la
RUN CGO_ENABLED=0 go test ./app/...
RUN go build -o goaws app/cmd/goaws.go
# release image
FROM alpine
WORKDIR /app
COPY --from=build /go/src/github.com/Admiral-Piett/goaws/goaws ./goaws
COPY app/conf/goaws.yaml ./conf/
EXPOSE 4100
HEALTHCHECK --interval=5s --timeout=3s --retries=3 \
CMD wget localhost:4100/health -q -O - > /dev/null
ENTRYPOINT ["./goaws"]