chore: initial import from sless/shared-sqs (v0.1.14)
- Standalone SQS-service repository - Multi-tenant message queue service, AWS SQS compatible - Based on GoAws, with mutable tenants, auth, WebUI, Redis persistence - Ready for independent development and deployment - See doc/ and README.md for architecture and usage
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
# Dockerfile — shared-sqs multi-stage build
|
||||
# Updated: 2026-04-09
|
||||
|
||||
FROM golang:1.22-alpine AS builder
|
||||
WORKDIR /build
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o shared-sqs ./app/cmd/
|
||||
|
||||
FROM alpine:3.19
|
||||
RUN apk --no-cache add ca-certificates
|
||||
COPY --from=builder /build/shared-sqs /usr/local/bin/shared-sqs
|
||||
COPY --from=builder /build/app/conf/goaws.yaml /conf/goaws.yaml
|
||||
EXPOSE 4100
|
||||
HEALTHCHECK --interval=10s --timeout=5s --retries=3 \
|
||||
CMD wget -q -O - http://localhost:4100/health || exit 1
|
||||
ENTRYPOINT ["shared-sqs", "--config", "/conf/goaws.yaml"]
|
||||
Reference in New Issue
Block a user