aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-06-28 01:40:19 +0530
committerBobby <[email protected]>2022-06-28 01:40:19 +0530
commit0116830ed57b837dbc17edf1a7ed3f06ae1ebf16 (patch)
tree1cdcbe76fab0b8474a98d48242d1fa4387fac009 /Dockerfile
parentf5ddd646b2b36686519395e5c9d1af52cc11de18 (diff)
downloadthatcomputerscientist-0116830ed57b837dbc17edf1a7ed3f06ae1ebf16.tar.xz
thatcomputerscientist-0116830ed57b837dbc17edf1a7ed3f06ae1ebf16.zip
Configuring Dockerfile to run Headless Chromium
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..2467eb6b
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM zenika/alpine-chrome:89-with-node-14
+
+COPY package*.json ./
+
+RUN npm install
+
+COPY . .
+
+ENV PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser'
+
+EXPOSE 8080
+CMD [ "node", "server.js" ]