1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 20:30:58 -05:00

Switch to Alpine image

This commit is contained in:
toast-ts 2024-04-03 00:05:15 +11:00
parent 17c7f45c61
commit 57122ae9db
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", "script": "dev",
"problemMatcher": [], "problemMatcher": [],
"label": "npm: yarn dev", "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 YARN_VERSION 4.1.1
ENV TZ Australia/Sydney ENV TZ Australia/Sydney
RUN yarn policies set-version $YARN_VERSION 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 WORKDIR /Daggerbot
RUN git config --global --add safe.directory /Daggerbot RUN git config --global --add safe.directory /Daggerbot
COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./ COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./