FROM golang:alpine
WORKDIR /app
RUN apk add git
COPY . .
RUN git config --global url."https://forgomod:glpat-uzHiaztQGzR1BL8RiQTK@penahub.gitlab.yandexcloud.net/".insteadOf "https://penahub.gitlab.yandexcloud.net/"
RUN apk add --no-cache git && go mod download
CMD ["go", "test", "./tests"]
