Final docker version

This commit is contained in:
2025-08-10 23:15:05 +02:00
parent 515a6a3f88
commit c72b63b730
2 changed files with 3 additions and 6 deletions

View File

@@ -12,7 +12,6 @@ RUN bun bundle
FROM oven/bun FROM oven/bun
WORKDIR /app WORKDIR /app
COPY --from=build /app/dist /app/dist COPY --from=build /app/dist /app
COPY --from=build /app/package.json /app
CMD ["bun", "run", "dist/index.js"] CMD ["bun", "run", "dist/index.js"]

View File

@@ -1,13 +1,10 @@
import { execSync } from "child_process" import { execSync } from "child_process"
import { InteractionContextType, SlashCommandBuilder } from "discord.js" import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { createRequire } from "node:module"
import os from "os" import os from "os"
import prettyMs from "pretty-ms" import prettyMs from "pretty-ms"
import { devMessage, embedColor } from "~/config/options" import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings" import { ICommand } from "~/typings"
import packageJson from "../../package.json"
const require = createRequire(import.meta.url)
const { dependencies, devDependencies } = require("../../package.json")
export default { export default {
name: "botinfo", name: "botinfo",
@@ -21,6 +18,7 @@ export default {
.setContexts(InteractionContextType.Guild), .setContexts(InteractionContextType.Guild),
async execute({ interaction, client }) { async execute({ interaction, client }) {
const { dependencies, devDependencies } = packageJson
const castedDeps = dependencies as { [key: string]: string } const castedDeps = dependencies as { [key: string]: string }
const castedDevDeps = devDependencies as { [key: string]: string } const castedDevDeps = devDependencies as { [key: string]: string }
let osInfo: string let osInfo: string