Skip to content

Commit

Permalink
feat(puppeteer): add chromium deps and envs for seamless operation of…
Browse files Browse the repository at this point in the history
… puppeteer
  • Loading branch information
ghoshRitesh12 committed Dec 17, 2024
1 parent fddf1e6 commit 4275a65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ LABEL org.opencontainers.image.source=https://github.com/ghoshRitesh12/aniwatch-
LABEL org.opencontainers.image.description="Node.js API for obtaining anime information from hianime.to (formerly aniwatch.to)"
LABEL org.opencontainers.image.licenses=MIT

# set env or puppeteer
ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium-browser"

# install deps and chromium
RUN apk add chromium

# create a non-privileged user
RUN addgroup -S aniwatch && adduser -S zoro -G aniwatch

Expand Down

0 comments on commit 4275a65

Please sign in to comment.