Update Dockerfile.dit

This commit is contained in:
Кузьмин Игорь Александрович committed 2024-12-28 11:08:34 +00:00
1 parent d80ff0f277
commit 2cb3a54d2c
1 file changed
-6
-6
View File
@@ -7,12 +7,6 @@ ARG app_name
ENV app_name_env=$app_name
COPY . .
ENV GOPROXY=https://repo-mirror.mos.ru/repository/go-public
RUN --mount=type=cache,target=/go/pkg/mod/ \
--mount=type=bind,source=go.sum,target=go.sum \
--mount=type=bind,source=go.mod,target=go.mod \
go mod download -x
RUN --mount=type=cache,target=/go/pkg/mod/ \
--mount=type=bind,target=. \
RUN go build -ldflags="-X 'main.version=$version_env'" -o /main .