Skip to content

Commit

Permalink
📦 build: Update permission
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzuZensai committed Aug 18, 2024
1 parent 94b8e1c commit 63d3eb1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@ COPY --from=build /home/node/app/NekoMelody/pnpm-lock.yaml ./NekoMelody/pnpm-loc
WORKDIR /home/node/app/NekoMelody
RUN pnpm install

WORKDIR /home/node/app
RUN useradd -m node
USER node
RUN chown -R node:node /home/node


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

USER node


CMD [ "node", "src/index.js"]

0 comments on commit 63d3eb1

Please sign in to comment.