chore(frontend): 删除废弃 frontend Dockerfile.prod
This commit is contained in:
parent
e8b145bff3
commit
00505f643d
|
|
@ -1,18 +0,0 @@
|
||||||
# --------------- 构建阶段 ---------------
|
|
||||||
FROM node:22-alpine AS builder
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
ARG PNPM_STORE_PATH=/root/.local/share/pnpm/store
|
|
||||||
ENV BETTER_AUTH_SECRET=any-random-string-123456
|
|
||||||
|
|
||||||
RUN corepack enable && corepack install -g pnpm@10.26.2
|
|
||||||
RUN pnpm config set store-dir ${PNPM_STORE_PATH}
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY frontend/ .
|
|
||||||
RUN pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
RUN pnpm build
|
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
CMD ["pnpm", "start"]
|
|
||||||
Loading…
Reference in New Issue