Merge pull request #3019 from omnivore-app/fix/debian-dockerfiles

Fixes for new docker images
This commit is contained in:
Jackson Harper
2023-10-26 11:48:09 +08:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,6 @@ WORKDIR /app
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN apt-get update && apt-get install -y g++ make python3
COPY package.json .
COPY yarn.lock .
COPY tsconfig.json .
@ -35,6 +34,8 @@ RUN yarn install --pure-lockfile --production
FROM node:18.16 as runner
RUN apt-get update && apt-get install -y netcat-openbsd
WORKDIR /app
ENV NODE_ENV production

View File

@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \
WORKDIR /app
ENV CHROMIUM_PATH /usr/bin/chromium-browser
ENV CHROMIUM_PATH /usr/bin/chromium
ENV LAUNCH_HEADLESS=true
COPY package.json .