fix: dockerfile build bath

This commit is contained in:
skeris 2024-05-13 23:12:45 +03:00
parent 0fe5e6f4e9
commit 3676b5fe36

@ -6,7 +6,7 @@ ARG GITLAB_TOKEN
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/"
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o amocrm
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o amocrm ./cmd/main.go
FROM alpine as prod
COPY --from=build /app/amocrm .