diff --git a/.devcontainer/slackbot/Dockerfile b/.devcontainer/slackbot/Dockerfile index fb4c0cd6..a011385e 100644 --- a/.devcontainer/slackbot/Dockerfile +++ b/.devcontainer/slackbot/Dockerfile @@ -1,15 +1,23 @@ FROM node:20-bookworm -# Install build dependencies for node-canvas -# https://github.com/Automattic/node-canvas/wiki/Installation%3A-Ubuntu-and-other-Debian-based-systems RUN apt-get update -y && \ + # Install build dependencies for node-canvas + # https://github.com/Automattic/node-canvas/wiki/Installation%3A-Ubuntu-and-other-Debian-based-systems apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y && \ + # Install git and bash apt-get install git bash -y && \ + # Install ngrok + curl -sSL https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc > /dev/null && \ + echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list && \ + apt-get update && \ + apt-get install ngrok -y && \ + # Install slackbot npm dependencies mkdir -p ~/.cache/slackbot/node_modules && \ mkdir -p ~/.cache/slackbot-functions/node_modules && \ git clone https://github.com/tsg-ut/slackbot.git --branch master --single-branch --recursive --depth 1 /code && \ cd /code && \ npm install && \ + # Cleanup apt-get clean && \ rm -rf /var/lib/apt/lists/* diff --git a/index.ts b/index.ts index 054fff19..6284044e 100644 --- a/index.ts +++ b/index.ts @@ -4,7 +4,7 @@ import 'canvas'; import dotenv from 'dotenv'; -dotenv.config(); +dotenv.config({ override: true }); import Fastify from 'fastify'; import qs from 'querystring';