🐳更新dockerfile
This commit is contained in:
parent
021f3a44ba
commit
0e95a460d5
@ -1,6 +1,10 @@
|
|||||||
FROM node:18-alpine as build-stage
|
FROM node:18-alpine as build-stage
|
||||||
|
|
||||||
RUN cd ./web-src
|
WORKDIR front
|
||||||
|
COPY . .
|
||||||
|
WORKDIR web-src
|
||||||
|
|
||||||
|
RUN ls -lh
|
||||||
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
|
||||||
@ -15,7 +19,7 @@ RUN apk add upx
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=build-stage /web /web
|
COPY --from=build-stage /front/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