Skip to content

Commit

Permalink
build: bot の workspace のビルド成果物の展開と起動を修正 (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina authored Dec 28, 2023
1 parent e919ee1 commit c2485f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ RUN pnpm build:bot

WORKDIR /build
RUN cp -r /src/{package.json,pnpm-lock.yaml,pnpm-workspace.yaml,node_modules} . \
&& cp -r /src/packages/bot/{build,assets} .
&& mkdir -p ./packages/bot \
&& cp -r /src/packages/bot/{build,assets,node_modules} ./packages/bot

FROM ubuntu:jammy-20231128
COPY --from=build /usr/local/include/ /usr/local/include/
Expand All @@ -35,6 +36,8 @@ ENV NODE_ENV=production
WORKDIR /app

COPY --from=build /build .
COPY --from=build /build/packages ./packages
COPY --from=build /build/packages/bot ./packages/bot

ENTRYPOINT ["node"]
CMD ["build/index.mjs"]
CMD ["packages/bot/build/index.mjs"]

0 comments on commit c2485f2

Please sign in to comment.