This commit is contained in:
@@ -10,6 +10,7 @@ RUN corepack prepare pnpm@8.6.10 --activate
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
RUN pnpm install
|
||||
RUN pnpm build
|
||||
RUN ls -lh && pwd
|
||||
|
||||
# 前后端集成打包
|
||||
FROM golang:alpine as build-backend
|
||||
@@ -17,7 +18,7 @@ FROM golang:alpine as build-backend
|
||||
RUN apk add upx
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
COPY --from=build-front /front/dist/ /build/dist
|
||||
COPY --from=build-front /front/web/dist/ /build/dist
|
||||
# sqlite必须
|
||||
ENV GO111MODULE=on
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
|
Reference in New Issue
Block a user