diff options
| author | Bobby <[email protected]> | 2022-06-28 02:24:22 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-06-28 02:24:22 +0530 |
| commit | 69dea158614b7763d5c316172cd905415265297e (patch) | |
| tree | f672fe5440f36a1bb7308d3fd604ddd508b9e19d | |
| parent | 30845230eb499f6cd2f680f9ffee48aee4e921a3 (diff) | |
| download | thatcomputerscientist-69dea158614b7763d5c316172cd905415265297e.tar.xz thatcomputerscientist-69dea158614b7763d5c316172cd905415265297e.zip | |
Change build process
| -rw-r--r-- | Dockerfile | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -1,17 +1,4 @@ -# FROM zenika/alpine-chrome:89-with-node-14 -FROM node:slim - -# We don't need the standalone Chromium -ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true - -# Install Google Chrome Stable and fonts -# Note: this installs the necessary libs to make the browser work with Puppeteer. -RUN apt-get update && apt-get install curl gnupg -y \ - && curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ - && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ - && apt-get update \ - && apt-get install google-chrome-stable -y --no-install-recommends \ - && rm -rf /var/lib/apt/lists/* +FROM zenika/alpine-chrome:89-with-node-14 COPY package*.json ./ @@ -19,5 +6,7 @@ RUN npm install COPY . . +ENV PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser' + EXPOSE 8080 CMD [ "node", "server.js" ] |
