This commit is contained in:
parent
36f0202c57
commit
48a58759da
@ -1,9 +1,9 @@
|
|||||||
# 打包前端
|
# 打包前端
|
||||||
FROM node:18-alpine as build-front
|
FROM node:18-alpine AS build-front
|
||||||
|
|
||||||
WORKDIR front
|
WORKDIR front
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR web
|
WORKDIR ./web
|
||||||
|
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
RUN corepack prepare pnpm@8.6.10 --activate
|
RUN corepack prepare pnpm@8.6.10 --activate
|
||||||
@ -13,7 +13,7 @@ RUN pnpm build
|
|||||||
RUN ls -lh && pwd
|
RUN ls -lh && pwd
|
||||||
|
|
||||||
# 前后端集成打包
|
# 前后端集成打包
|
||||||
FROM golang:alpine as build-backend
|
FROM golang:alpine AS build-backend
|
||||||
|
|
||||||
RUN apk add upx
|
RUN apk add upx
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
Loading…
Reference in New Issue
Block a user