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
WORKDIR /app
COPY --from=build /app/dist /app/dist
COPY --from=build /app/package.json /app
COPY --from=build /app/dist /app
CMD ["bun", "run", "dist/index.js"]

View File

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