🐳更新dockerfile
Some checks failed
continuous-integration/drone/tag Build is failing

This commit is contained in:
coward 2024-06-04 10:06:07 +08:00
parent 6d4f4b2e02
commit b2c4ea2cd0

View File

@ -3,16 +3,11 @@ FROM node:18-alpine as build-stage
WORKDIR ./web-src WORKDIR ./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
COPY .npmrc package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build RUN pnpm build
FROM golang:alpine as build FROM golang:alpine as build
RUN apk add upx RUN apk add upx