feat: dockerfile

master
paring 2023-06-29 19:55:16 +09:00
parent 2cf11e2784
commit 61968ddb84
4 changed files with 21 additions and 3 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
config.toml
node_modules
recordings

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:18-alpine
RUN apk add --no-cache python3 make gcc clang g++
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN corepack enable && pnpm i
COPY . .
RUN pnpm prisma generate
CMD ["pnpm", "start"]

View File

@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"dev": "tsx src/index.ts", "start": "tsx src/index.ts",
"merge": "tsx src/merge.ts" "merge": "tsx src/merge.ts"
}, },
"keywords": [], "keywords": [],

View File

@ -47,7 +47,6 @@ export class RecordingSessionManager {
}, },
selfDeaf: false, selfDeaf: false,
selfMute: true, selfMute: true,
debug: true,
}), }),
voiceChannel, voiceChannel,
textChannel textChannel
@ -74,7 +73,8 @@ export class RecordingSession {
public vc: VoiceConnection, public vc: VoiceConnection,
public voiceChannelId: Snowflake, public voiceChannelId: Snowflake,
public textChannelId: Snowflake public textChannelId: Snowflake
) {} ) {
}
async init() { async init() {
const result = await db.session.create({ const result = await db.session.create({