修复backend dist文件路径
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ web
|
|||||||
|
|
||||||
# Go 构建产物
|
# Go 构建产物
|
||||||
bin
|
bin
|
||||||
cmd/openteam/dist
|
backend/cmd/openteam/dist
|
||||||
|
|
||||||
# 文档与 CI
|
# 文档与 CI
|
||||||
doc
|
doc
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ ARG TARGETARCH
|
|||||||
RUN apk --no-cache add make upx
|
RUN apk --no-cache add make upx
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=frontend /frontend-build/dist /build/cmd/openteam/dist
|
COPY --from=frontend /frontend-build/dist /build/backend/cmd/openteam/dist
|
||||||
ENV GO111MODULE=on \
|
ENV GO111MODULE=on \
|
||||||
CGO_ENABLED=0 \
|
CGO_ENABLED=0 \
|
||||||
GOOS=$TARGETOS \
|
GOOS=$TARGETOS \
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|||||||
&& apk --no-cache add make upx
|
&& apk --no-cache add make upx
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=frontend /frontend-build/dist /build/cmd/openteam/dist
|
COPY --from=frontend /frontend-build/dist /build/backend/cmd/openteam/dist
|
||||||
ENV GO111MODULE=on \
|
ENV GO111MODULE=on \
|
||||||
GOPROXY=https://goproxy.cn,direct \
|
GOPROXY=https://goproxy.cn,direct \
|
||||||
CGO_ENABLED=0 \
|
CGO_ENABLED=0 \
|
||||||
|
|||||||
Reference in New Issue
Block a user