2024-08-19 16:56:42 +08:00
|
|
|
FROM git.daoyoucloud.com/tachybase/base:latest AS base
|
2024-05-08 16:20:31 +08:00
|
|
|
|
2024-07-19 11:50:30 +08:00
|
|
|
ARG NPM_REGISTRY=https://registry.npmjs.org
|
2024-05-08 16:20:31 +08:00
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
|
|
|
|
|
|
# make cache
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
2024-07-19 11:50:30 +08:00
|
|
|
RUN npm config set registry $NPM_REGISTRY
|
2024-08-19 16:56:42 +08:00
|
|
|
RUN npm i -g pnpm@9.7.0
|
2024-05-08 16:20:31 +08:00
|
|
|
RUN pnpm config set registry $NPM_REGISTRY
|
2024-08-19 16:56:42 +08:00
|
|
|
RUN pnpm install --shamefully-hoist --config.build_from_source=sqlite3
|
2024-05-08 16:20:31 +08:00
|
|
|
RUN pnpm build:p
|
|
|
|
|
|
|
|
COPY ./docker/tachybase/docker-entrypoint.sh /app/
|
|
|
|
CMD ["/app/docker-entrypoint.sh"]
|