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

Merge branch from Novdec

This commit is contained in:
toast-ts 2024-01-28 17:12:32 +11:00
parent 4332baa85e
commit 89fc2b1ed3
3 changed files with 35 additions and 0 deletions

16
.dockerignore Normal file
View File

@ -0,0 +1,16 @@
# Pointless stuff
Dockerfile
docker-compose.yml
.ncurc.json
.env
.mailmap
.github
.vscode
.github
postgres-replica-stuff
README.md
ufwReject.sh
# Startup files
startWithYarn.cjs
botStartup.bat

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:21.1.0-bookworm-slim
ENV YARN_VERSION 4.0.2
RUN yarn policies set-version $YARN_VERSION
RUN apt update -y && apt upgrade -y && apt install -y git
RUN npm install -g typescript
WORKDIR /Daggerbot
RUN git config --global --add safe.directory /Daggerbot
COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./
RUN yarn workspaces focus
CMD [ "yarn", "node", "." ]

View File

@ -1,4 +1,12 @@
services:
bot:
container_name: daggerbot-prod
build: .
restart: unless-stopped
volumes:
- ./.git:/Daggerbot/.git:rw
- ./src/:/Daggerbot/src/:rw
- ./dist/:/Daggerbot/dist/:rw
cache:
container_name: redis-cache
image: redis/redis-stack-server:7.2.0-v6