diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..173d36a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,26 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.241.1/containers/docker-existing-dockerfile +{ + "name": "Existing Dockerfile", + + // Sets the run context to one level up instead of the .devcontainer folder. + "context": "..", + + // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. + "dockerFile": "../Dockerfile" + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Uncomment the next line to run commands after the container is created - for example installing curl. + // "postCreateCommand": "apt-get update && apt-get install -y curl", + + // Uncomment when using a ptrace-based debugger like C++, Go, and Rust + // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], + + // Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker. + // "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], + + // Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root. + // "remoteUser": "vscode" +} diff --git a/Dockerfile b/Dockerfile index 794c36e..d2f580e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM node:18-bullseye +FROM node:16-bullseye -RUN apt-get update && apt-get install -y tini +RUN apt-get update && apt-get install -y tini build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev ARG enable_mecab=1 diff --git a/package.json b/package.json index 7757f55..5c9adec 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@types/uuid": "8.3.4", "@types/ws": "7.4.7", "autobind-decorator": "2.4.0", - "canvas": "2.9.1", + "canvas": "2.9.3", "chalk": "4.1.2", "jsdom": "19.0.0", "lokijs": "1.5.12",