diff --git a/.yarnrc b/.yarnrc deleted file mode 100644 index 7c43029..0000000 --- a/.yarnrc +++ /dev/null @@ -1,5 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -yarn-path ".yarn/releases/yarn-1.22.22.cjs" \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml index 8b757b2..3186f3f 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1 +1 @@ -nodeLinker: node-modules \ No newline at end of file +nodeLinker: node-modules diff --git a/Dockerfile b/Dockerfile index 3f81cfb..fd33cbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ WORKDIR /app RUN apk add --no-cache --virtual .gyp python3 make g++ COPY package.json yarn.lock ./ +RUN yarn set version 4.1.1 RUN yarn COPY . . diff --git a/commands/misc/imageClassification.ts b/commands/misc/imageClassification.ts index d74b7bf..7814263 100644 --- a/commands/misc/imageClassification.ts +++ b/commands/misc/imageClassification.ts @@ -38,7 +38,7 @@ export default commandModule({ const ctxCanvas = canvas.getContext('2d'); const img = await loadImage(image.url); ctxCanvas.drawImage(img, 0, 0, metadata.width, metadata.height); - ctxCanvas.font = '30px sans-serif'; + ctxCanvas.font = '40px sans-serif'; ctxCanvas.fillStyle = 'red'; ctxCanvas.strokeStyle = 'red'; ctxCanvas.lineWidth = 3;