From 57122ae9dbf1ab01a5e86b751efa63f81371bd76 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Wed, 3 Apr 2024 00:05:15 +1100 Subject: [PATCH] Switch to Alpine image --- .vscode/launch.json | 11 +++++++++++ .vscode/tasks.json | 2 +- Dockerfile | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..0501581 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "attach", + "name": "Debug Node.js remotely", + "port": 9229 + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f5d5bb8..2a8bcd8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,7 +6,7 @@ "script": "dev", "problemMatcher": [], "label": "npm: yarn dev", - "detail": "yarn tsc && yarn node . src/DB-Beta.config.json" + "detail": "yarn tsc && yarn node . src/DB-Beta.config.json daggerbotbeta true" } ] } diff --git a/Dockerfile b/Dockerfile index 9023bc8..ded643a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM node:21.7.1-bookworm-slim +FROM node:21.7.1-alpine3.19 ENV YARN_VERSION 4.1.1 ENV TZ Australia/Sydney RUN yarn policies set-version $YARN_VERSION -RUN apt update -y && apt upgrade -y && apt install -y git fontconfig && npm install -g typescript +RUN apk update && apk upgrade && apk add --no-cache git fontconfig && npm install -g typescript WORKDIR /Daggerbot RUN git config --global --add safe.directory /Daggerbot COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./