dockerfile/examples/omnivore/official-src/omnivore-main/packages/api/Dockerfile-test

31 lines
917 B
Plaintext
Raw Normal View History

2024-03-15 14:52:38 +08:00
FROM node:18.16-alpine
WORKDIR /app
COPY package.json .
COPY yarn.lock .
COPY tsconfig.json .
COPY /packages/readabilityjs/package.json ./packages/readabilityjs/package.json
COPY /packages/api/package.json ./packages/api/package.json
COPY /packages/text-to-speech/package.json ./packages/text-to-speech/package.json
COPY /packages/content-handler/package.json ./packages/content-handler/package.json
COPY /packages/liqe/package.json ./packages/liqe/package.json
RUN apk --no-cache --virtual build-dependencies add \
python3 \
make \
g++
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN yarn install
COPY /packages/readabilityjs ./packages/readabilityjs
COPY /packages/api ./packages/api
COPY /packages/text-to-speech ./packages/text-to-speech
COPY /packages/content-handler ./packages/content-handler
COPY /packages/liqe ./packages/liqe
CMD ["yarn", "workspace", "@omnivore/api", "test"]