tachybase_todo/docker/tachybase/Dockerfile
sealday 7850cb3324 fix: add checkout phase (#1464)
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1464
2024-08-19 16:56:42 +08:00

18 lines
472 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@9.7.0
RUN pnpm config set registry $NPM_REGISTRY
RUN pnpm install --shamefully-hoist --config.build_from_source=sqlite3
RUN pnpm build:p
COPY ./docker/tachybase/docker-entrypoint.sh /app/
CMD ["/app/docker-entrypoint.sh"]