test app with postgres and redis healthchecks
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user