Skip to content

Commit

Permalink
Update packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Jul 25, 2024
1 parent 632676b commit 7e5b4db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ RUN mkdir -p /pdf-gen/bin
RUN microdnf install -y git make tar
RUN curl -L https://git.io/n-install --output n-install
RUN chmod +x n-install && yes y | ./n-install
RUN $HOME/n/bin/n 18
RUN $HOME/n/bin/n 20

ENV XDG_CONFIG_HOME="/tmp/.chromium"
ENV XDG_CACHE_HOME="/tmp/.chromium"
# needed for node-gyp https://github.com/nodejs/node-gyp?tab=readme-ov-file#installation
RUN microdnf install -y python3 make gcc-c++


# RUN npm install using package-lock.json
RUN npm ci
Expand All @@ -30,6 +33,7 @@ RUN microdnf install -y bzip2 fontconfig pango.x86_64 \
atk.x86_64 gtk3.x86_64 libdrm libgbm libxshmfence libXScrnSaver alsa-lib \
wget nss.x86_64 nss GConf2 GConf2.x86_64


# Set node env variable
ENV NODE_ENV=production
ENV DEBUG=puppeteer-cluster:*
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"circular": "madge --circular --warning --extensions ts,tsx ./src",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"scan": "docker build . -t pdf:audit && grype pdf:audit --fail-on medium --only-fixed",
"start:debug": "DEBUG='puppeteer-cluster:*' npm run start:server ",
"serve": "npx wait-on dist/server.js && nodemon dist/server.js",
"start:server": "NODE_ENV=development npx concurrently \"npx webpack -c ./config/webpack.config.js -w\" \"npm run serve\"",
Expand Down

0 comments on commit 7e5b4db

Please sign in to comment.