upd testsDockerfile
This commit is contained in:
parent
1af0bddfbf
commit
7e0e238d1f
@ -1,17 +1,19 @@
|
||||
FROM gitea.pena/penadevops/container-images/golang:1.23.8-alpine
|
||||
|
||||
ADD pena-ca.crt /usr/local/share/ca-certificates/cacert.crt
|
||||
RUN apk add --no-cache git ca-certificates && update-ca-certificates
|
||||
RUN apk add --no-cache git ca-certificates tzdata curl catatonit && update-ca-certificates
|
||||
|
||||
export GOPRIVATE=gitea.pena/*
|
||||
git config --global url."https://${REGISTRY_USER}:${REGISTRY_PASSWORD}@gitea.pena/".insteadOf "https://gitea.pena/"
|
||||
ENV GOPRIVATE=gitea.pena/*
|
||||
|
||||
ARG REGISTRY_USER
|
||||
ARG REGISTRY_PASSWORD
|
||||
RUN git config --global url."https://${REGISTRY_USER}:${REGISTRY_PASSWORD}@gitea.pena/".insteadOf "https://gitea.pena/"
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN apk add --no-cache tzdata curl catatonit
|
||||
ENTRYPOINT ["/sbin/catatonit", "--"]
|
||||
|
||||
CMD go run ./cmd/main.go & sleep 30 && go test ./tests && kill %1
|
||||
|
Loading…
Reference in New Issue
Block a user