fix(docker): use ENV for HOSTNAME and exec form CMD

This commit is contained in:
luojiyin
2025-12-13 15:33:24 +08:00
parent d8465ac251
commit 3142818cf2
3 changed files with 9 additions and 7 deletions

View File

@@ -2,7 +2,8 @@
FROM node:20.16.0-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
RUN corepack enable
RUN corepack prepare pnpm@9.12.0 --activate
FROM base AS build
COPY . /usr/src/app