feat: dockerfile
parent
2cf11e2784
commit
61968ddb84
|
@ -0,0 +1,3 @@
|
||||||
|
config.toml
|
||||||
|
node_modules
|
||||||
|
recordings
|
|
@ -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"]
|
|
@ -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": [],
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue