fix: docker build (#1355)
Co-authored-by: sealday <sealday@gmail.com> Reviewed-on: daoyoucloud/tachybase#1355
This commit is contained in:
parent
59ac5ec8c0
commit
2bfc1d1eee
@ -1,14 +1,14 @@
|
|||||||
FROM git.daoyoucloud.com/tachybase/base:latest as base
|
FROM git.daoyoucloud.com/tachybase/base:latest as base
|
||||||
|
|
||||||
ARG NPM_REGISTRY=https://registry.npmjs.org/
|
ARG NPM_REGISTRY=https://registry.npmjs.org
|
||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
|
||||||
# make cache
|
# make cache
|
||||||
COPY .pnpm-store /pnpm/store
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN corepack enable
|
RUN npm config set registry $NPM_REGISTRY
|
||||||
|
RUN npm i -g pnpm@8.15.5
|
||||||
RUN pnpm config set registry $NPM_REGISTRY
|
RUN pnpm config set registry $NPM_REGISTRY
|
||||||
RUN pnpm install --shamefully-hoist
|
RUN pnpm install --shamefully-hoist
|
||||||
RUN pnpm build:p
|
RUN pnpm build:p
|
||||||
|
Loading…
Reference in New Issue
Block a user