2024-12-28 14:09:11: merge [main:2cb3a54d2c4a593e00ef571f9847359c62dee87c];
This commit is contained in:
1 parent
01a9efc965
commit
dbf061213d
1 file changed
-6
@@ -7,12 +7,6 @@ ARG app_name
|
|||||||
ENV app_name_env=$app_name
|
ENV app_name_env=$app_name
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV GOPROXY=https://repo-mirror.mos.ru/repository/go-public
|
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 .
|
RUN go build -ldflags="-X 'main.version=$version_env'" -o /main .
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user