From c8743316a17093df9f7367552ce1e7ef32736ebf Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 10 Aug 2025 21:28:22 +0200 Subject: [PATCH] Fix for docker --- Dockerfile | 4 ++-- src/typings/General.ts | 2 +- src/utils/Illegitimate.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 829dbf8..b6753eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ RUN bun bundle FROM oven/bun WORKDIR /app -COPY --from=build /app/dist /app +COPY --from=build /app/dist /app/dist -CMD ["bun", "run", "index.js"] +CMD ["bun", "run", "dist/index.js"] diff --git a/src/typings/General.ts b/src/typings/General.ts index 049e76d..5889d74 100644 --- a/src/typings/General.ts +++ b/src/typings/General.ts @@ -1,4 +1,4 @@ export type LoadEventsOptions = { ft: "ts" | "js" - dir: "src" | "dist" | "" + dir: "src" | "dist" } diff --git a/src/utils/Illegitimate.ts b/src/utils/Illegitimate.ts index 87ed5b7..2975114 100644 --- a/src/utils/Illegitimate.ts +++ b/src/utils/Illegitimate.ts @@ -8,7 +8,7 @@ const client = new Client() const redis = new RedisClient(env.prod.REDISURI) const ft = process.env.BUILD !== "true" ? "ts" : "js" -const dir = process.env.DOCKER === "1" ? "" : process.env.BUILD !== "true" ? "src" : "dist" +const dir = process.env.BUILD !== "true" ? "src" : "dist" class Illegitimate { async start() {