tachybase_todo/docker/tachybase/Dockerfile
sealday 2bfc1d1eee fix: docker build (#1355)
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1355
2024-07-19 11:50:30 +08:00

18 lines
438 B
Docker

FROM git.daoyoucloud.com/tachybase/base:latest as base
ARG NPM_REGISTRY=https://registry.npmjs.org
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
# make cache
COPY . /app
WORKDIR /app
RUN npm config set registry $NPM_REGISTRY
RUN npm i -g pnpm@8.15.5
RUN pnpm config set registry $NPM_REGISTRY
RUN pnpm install --shamefully-hoist
RUN pnpm build:p
COPY ./docker/tachybase/docker-entrypoint.sh /app/
CMD ["/app/docker-entrypoint.sh"]