22 lines
353 B
Docker
22 lines
353 B
Docker
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" ]
|