This commit is contained in:
Sakurasan
2025-04-24 02:08:12 +08:00
parent 9c604460b1
commit 923fb09f2a
+4 -4
View File
@@ -1,13 +1,13 @@
FROM node:20-alpine AS frontend FROM mirrors2/alpine AS frontend
WORKDIR /frontend-build WORKDIR /frontend-build
COPY ./frontend . 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" LABEL anther="github.com/Sakurasan"
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories # 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 WORKDIR /build
COPY . . COPY . .
COPY --from=frontend /frontend-build/dist /build/cmd/openteam/dist COPY --from=frontend /frontend-build/dist /build/cmd/openteam/dist