fix: dockerfile build bath
This commit is contained in:
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 .
|
||||
|
Loading…
Reference in New Issue
Block a user