test app with postgres and redis healthchecks

This commit is contained in:
stackops
2026-04-09 14:05:23 +03:00
commit db74b13ce2
6 changed files with 213 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM golang:1.25-alpine AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /test-app .
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY --from=builder /test-app /usr/local/bin/test-app
EXPOSE 8080
ENTRYPOINT ["test-app"]