core/deployments/renew_tests/TestsDockerfile

15 lines
410 B
Plaintext
Raw Normal View History

2025-08-25 13:49:05 +00:00
FROM gitea.pena/penadevops/container-images/golang:1.23.8-alpine
2025-08-26 07:30:47 +00:00
2025-08-26 07:36:25 +00:00
ADD pena-ca.crt /usr/local/share/ca-certificates/cacert.crt
2025-08-26 07:47:01 +00:00
RUN apk add --no-cache git ca-certificates && update-ca-certificates
2025-08-26 07:30:47 +00:00
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
2025-08-26 07:30:47 +00:00
COPY . .
2025-07-31 12:42:30 +00:00
RUN apk add --no-cache tzdata curl catatonit
ENTRYPOINT ["/sbin/catatonit", "--"]
CMD go run ./cmd/main.go & sleep 30 && go test ./tests && kill %1