Skip to content

Commit

Permalink
📦 build: Install chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzuZensai committed Aug 18, 2024
1 parent 99a90b2 commit 94b8e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ COPY --from=build /home/node/app/package.json .
COPY --from=build /home/node/app/pnpm-lock.yaml .

RUN pnpm install
RUN pnpx puppeteer browsers install chrome

COPY --from=build /home/node/app/prisma ./prisma/
RUN pnpm prisma generate
Expand All @@ -56,10 +57,10 @@ COPY --from=build /home/node/app/NekoMelody/pnpm-lock.yaml ./NekoMelody/pnpm-loc

WORKDIR /home/node/app/NekoMelody
RUN pnpm install
RUN pnpx puppeteer browsers install chrome

WORKDIR /home/node/app

RUN pnpx puppeteer browsers install chrome
RUN useradd -m node && chown -R node:node /home/node/app

USER node
Expand Down

0 comments on commit 94b8e1c

Please sign in to comment.