Skip to content

Commit d487649

Browse files
committed
removeHintingをdependencyステップで実行する
1 parent 135424d commit d487649

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ COPY packages/runtime/package.json ./packages/runtime/
1111
RUN --mount=type=cache,target=/root/.npm \
1212
npm ci --no-audit --no-fund
1313

14+
# これだけ時間かかるので先に実行する
15+
WORKDIR /app
16+
COPY ./scripts ./scripts
17+
RUN mkdir app && npx tsx ./scripts/removeHinting.ts
18+
1419
FROM node:lts-slim AS builder
1520

1621
# ビルド中にsentryでソースマップをアップロードするのに必要
@@ -25,6 +30,8 @@ COPY --from=dependencies /app/node_modules ./node_modules
2530
# Copy application source code
2631
COPY . .
2732

33+
COPY --from=dependencies /app/app/m-plus-rounded-1c-nohint ./app/m-plus-rounded-1c-nohint
34+
2835
# Stop if documentation has any change that is not reflected to revisions.yml and database.
2936
RUN npx tsx ./scripts/checkDocs.ts --check-diff
3037

0 commit comments

Comments
 (0)