From 1fcd8a505a09956c2908fc44dbcc04b813cea59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Sun, 8 Nov 2020 20:02:29 +0100 Subject: [PATCH] use new command path and set env in one image --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c448e81..a602a01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM node:14.2-alpine MAINTAINER Jørgen Sverre Lien Sellæg ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ - PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser + PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser \ + PATH="$PATH:/app" RUN apk add --no-cache \ chromium \ @@ -24,6 +25,5 @@ COPY . /app RUN yarn -ENV PATH=$PATH:/app +CMD ["scrape"] -CMD ["/app/scrape"]