diff --git a/Dockerfile b/Dockerfile index 6c60339..415a00f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM node:16-bullseye-slim # Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others) # Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer # installs, work. +RUN apt-get update && apt-get install -y wget gnupg RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ && apt-get update \ @@ -11,6 +12,7 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key --no-install-recommends \ && rm -rf /var/lib/apt/lists/* +ENV PYTHON /usr/bin/python3 ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true ENV CHROME_PATH "google-chrome-unstable" diff --git a/src/db/index.ts b/src/db/index.ts index a097a79..4d59a7f 100644 --- a/src/db/index.ts +++ b/src/db/index.ts @@ -42,7 +42,7 @@ async function getSchema(conn: DbConnectionType) { export async function awaitDbConnection( conn: DbConnectionType, - options: Options = { maxRetryTime: 10000 }, + options: Options = {}, ): Promise { logger.debug('awaiting db connection...'); await retry(async () => {