This commit is contained in:
Sakurasan
2025-04-24 02:08:12 +08:00
parent 9c604460b1
commit 923fb09f2a

View File

@@ -1,13 +1,13 @@
FROM node:20-alpine AS frontend
FROM mirrors2/alpine AS frontend
WORKDIR /frontend-build
COPY ./frontend .
RUN npm install -g pnpm && pnpm i && pnpm build
# RUN npm install -g pnpm && pnpm i && pnpm build
FROM golang:1.23-alpine AS backend
FROM mirrors2/alpine AS backend
LABEL anther="github.com/Sakurasan"
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk --no-cache add make cmake upx
# RUN apk --no-cache add make cmake upx
WORKDIR /build
COPY . .
COPY --from=frontend /frontend-build/dist /build/cmd/openteam/dist