canvas fix

This commit is contained in:
Stanislaw
2022-07-01 22:51:06 +02:00
parent 8ec2b4dca2
commit 918e498ac3
2 changed files with 4 additions and 2 deletions

View File

@@ -2,5 +2,8 @@
FROM node:16.10.0
WORKDIR /app
COPY ./ ./
RUN apt-get -y update
RUN apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
RUN npm install --build-from-source canvas
RUN npm install
CMD ["node", "index.js"]

View File

@@ -1,4 +1,4 @@
/*module.exports = {
module.exports = {
name: "profile",
async execute(cl, msg, args, connect) {
const { roundRect, expThreshold } = require("../functions/tools");
@@ -54,4 +54,3 @@
.catch((err) => console.error(err.stack));
},
};
*/