23 lines
353 B
Text
23 lines
353 B
Text
|
FROM node:20.5.0-alpine3.18
|
||
|
|
||
|
RUN apk add --no-cache \
|
||
|
git \
|
||
|
chromium-chromedriver
|
||
|
|
||
|
# use chromedriver from apk
|
||
|
ENV CHROMEDRIVER_FILEPATH=/usr/bin/chromedriver
|
||
|
|
||
|
WORKDIR /app/
|
||
|
|
||
|
COPY ./package.json /app/package.json
|
||
|
COPY ./yarn.lock /app/yarn.lock
|
||
|
|
||
|
RUN yarn \
|
||
|
&& yarn cache clean
|
||
|
|
||
|
COPY . /app/
|
||
|
|
||
|
ENV NODE_ENV=production
|
||
|
|
||
|
ENTRYPOINT [ "yarn", "run" ]
|