🚀 update Dockerfile

This commit is contained in:
platane
2021-10-04 15:50:15 +02:00
committed by Platane
parent 2844b095f3
commit a9a9e29cf2
2 changed files with 2 additions and 6 deletions

View File

@@ -1,12 +1,8 @@
FROM node:16-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends gifsicle graphicsmagick \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /github/snk
RUN npm install canvas@2.8.0 --no-save --no-package-lock
RUN npm install canvas@2.8.0 gifsicle@5.2.0 --no-save --no-package-lock
COPY dist /github/snk/

View File

@@ -11,7 +11,7 @@
"ts-node": "10.2.1"
},
"scripts": {
"build": "ncc build --external canvas --out dist ./index.ts ",
"build": "ncc build --external canvas --external gifsicle --out dist ./index.ts",
"dev": "ts-node __tests__/dev.ts"
}
}