aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2024-12-17 19:09:42 +0530
committerRitesh Ghosh <[email protected]>2024-12-17 19:09:42 +0530
commit4275a65b9dc959e91a8eb388df5546b797c639a4 (patch)
tree3b0bb724a93d7b886e220f8363b7924f87db543b /Dockerfile
parentfddf1e6f2f9f1b73a107a402e07382c537cdd55b (diff)
downloadaniwatch-api-4275a65b9dc959e91a8eb388df5546b797c639a4.tar.xz
aniwatch-api-4275a65b9dc959e91a8eb388df5546b797c639a4.zip
feat(puppeteer): add chromium deps and envs for seamless operation of puppeteer
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 6913e9e..03101ac 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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