aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-06-28 03:02:23 +0530
committerBobby <[email protected]>2022-06-28 03:02:23 +0530
commit8ed1310ca1576dbbfb523267426be8bb9905676f (patch)
tree97771ce8c057fc00f289ad80f96423ac1d0c03bc
parent05fd6480c99a48ac52feee3e5b184c6c3e23bcfd (diff)
downloadthatcomputerscientist-8ed1310ca1576dbbfb523267426be8bb9905676f.tar.xz
thatcomputerscientist-8ed1310ca1576dbbfb523267426be8bb9905676f.zip
Update to latest alpine-chrome with msttcorefonts
-rw-r--r--Dockerfile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 2467eb6b..45f17f74 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,18 @@
-FROM zenika/alpine-chrome:89-with-node-14
+FROM zenika/alpine-chrome:latest-with-node
+
+USER root
+
+RUN apk add --no-cache msttcorefonts-installer fontconfig
+RUN update-ms-fonts
+RUN fc-cache -f && rm -rf /var/cache/*
+
+USER chrome
COPY package*.json ./
RUN npm install
COPY . .
-
ENV PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser'
EXPOSE 8080