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

Update Node.js to 22.1.0 and use its cache feature

This commit is contained in:
toast-ts 2024-05-05 17:59:11 +10:00
parent 51119aff72
commit 1bf0ce0e4b
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,5 +2,6 @@
.yarn .yarn
.pnp.* .pnp.*
dist dist
build_cache
src/private src/private
src/*.json src/*.json

View File

@ -1,6 +1,7 @@
FROM node:22.0.0-alpine3.19 FROM node:22.1.0-alpine3.19
ENV YARN_VERSION 4.2.1 ENV YARN_VERSION 4.2.1
ENV TZ Australia/Sydney ENV TZ Australia/Sydney
ENV NODE_COMPILE_CACHE /Daggerbot/build_cache
RUN yarn policies set-version $YARN_VERSION RUN yarn policies set-version $YARN_VERSION
RUN apk update && apk upgrade && apk add --no-cache git fontconfig ttf-dejavu RUN apk update && apk upgrade && apk add --no-cache git fontconfig ttf-dejavu
WORKDIR /Daggerbot WORKDIR /Daggerbot

View File

@ -7,3 +7,4 @@ services:
- ./.git:/Daggerbot/.git:rw - ./.git:/Daggerbot/.git:rw
- ./src/:/Daggerbot/src/:rw - ./src/:/Daggerbot/src/:rw
- ./dist/:/Daggerbot/dist/:rw - ./dist/:/Daggerbot/dist/:rw
- ./build_cache/:/Daggerbot/build_cache:rw