From 2c7ad0d1533e7872e5954cabd1532a05f998e56c Mon Sep 17 00:00:00 2001 From: skeris Date: Sun, 8 Dec 2024 16:14:22 +0300 Subject: [PATCH] add goprivate and change base images to gitea --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9cea0a3..1c91685 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,12 @@ -FROM golang:alpine as build +FROM gitea.pena:3000/penadevops/container-images/golang:main as build WORKDIR /app -ARG GITLAB_TOKEN -RUN apk add git -ENV GOPRIVATE=penahub.gitlab.yandexcloud.net/backend/penahub_common -RUN git config --global url."https://buildToken:glpat-axA8ttckx3aPf_xd2Dym@penahub.gitlab.yandexcloud.net/".insteadOf "https://penahub.gitlab.yandexcloud.net/" +ENV GOPRIVATE=gitea.pena/PenaSide/* +ENV GOINSECURE=gitea.pena/PenaSide/* COPY . . RUN go mod download RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ./cmd/verification/main.go -FROM alpine +FROM gitea.pena:3000/penadevops/container-images/alpine:main EXPOSE 7035 COPY --from=build app/app . COPY --from=build app/staging.env .