akkoma-fe/Dockerfile

22 lines
353 B
Docker

FROM node:22.6.0-alpine3.20
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" ]