修复backend dist文件路径
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ web
|
||||
|
||||
# Go 构建产物
|
||||
bin
|
||||
cmd/openteam/dist
|
||||
backend/cmd/openteam/dist
|
||||
|
||||
# 文档与 CI
|
||||
doc
|
||||
|
||||
@@ -18,7 +18,7 @@ ARG TARGETARCH
|
||||
RUN apk --no-cache add make upx
|
||||
WORKDIR /build
|
||||
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 \
|
||||
CGO_ENABLED=0 \
|
||||
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
|
||||
WORKDIR /build
|
||||
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 \
|
||||
GOPROXY=https://goproxy.cn,direct \
|
||||
CGO_ENABLED=0 \
|
||||
|
||||
Reference in New Issue
Block a user