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": "",
"main": "dist/index.js",
"scripts": {
"dev": "tsx src/index.ts",
"start": "tsx src/index.ts",
"merge": "tsx src/merge.ts"
},
"keywords": [],

View File

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