1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 04:11:00 -04:00
Daggerbot-TS/Dockerfile
2024-09-03 16:05:46 +10:00

15 lines
480 B
Docker

FROM node:22.7-alpine3.20
ENV YARN_VERSION="4.4.1"
ENV TZ="Australia/Sydney"
ENV NODE_COMPILE_CACHE="/Daggerbot/build_cache"
RUN yarn policies set-version $YARN_VERSION
RUN apk update && apk upgrade && apk add --no-cache git fontconfig ttf-dejavu
WORKDIR /Daggerbot
RUN npm install -g typescript
RUN git config --global --add safe.directory /Daggerbot
COPY .yarn/patches .yarn/patches
COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./
RUN yarn
CMD [ "yarn", "node", "." ]