This commit is contained in:
parent
b2c4ea2cd0
commit
021f3a44ba
@ -1,6 +1,6 @@
|
|||||||
FROM node:18-alpine as build-stage
|
FROM node:18-alpine as build-stage
|
||||||
|
|
||||||
WORKDIR ./web-src
|
RUN cd ./web-src
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
RUN corepack prepare pnpm@8.6.10 --activate
|
RUN corepack prepare pnpm@8.6.10 --activate
|
||||||
RUN npm config set registry https://registry.npmmirror.com
|
RUN npm config set registry https://registry.npmmirror.com
|
||||||
@ -14,8 +14,8 @@ RUN apk add upx
|
|||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY ./web-src/dist ./web
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
COPY --from=build-stage /web /web
|
||||||
# sqlite必须
|
# sqlite必须
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
ENV GOPROXY=https://goproxy.cn,direct
|
ENV GOPROXY=https://goproxy.cn,direct
|
||||||
|
Loading…
Reference in New Issue
Block a user