1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 04:11:00 -04:00

Switch to Alpine image

This commit is contained in:
toast-ts 2024-04-03 00:05:15 +11:00
parent d4760778e8
commit 30240806ca
3 changed files with 14 additions and 3 deletions

11
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Debug Node.js remotely",
"port": 9229
}
]
}

2
.vscode/tasks.json vendored
View File

@ -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"
}
]
}

View File

@ -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 ./