From 894205171351c6eaa112b919c755054409577038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=94=EB=83=A5=20=28imnyang=29?= Date: Mon, 9 Mar 2026 13:18:05 +0000 Subject: [PATCH] idkwtfissue --- Dockerfile | 16 ---------------- app/lib/comcigan.ts | 4 ++-- app/run.sh | 2 +- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index f240bf7..88b0cd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,22 +12,6 @@ RUN mkdir -p /code/app/temp # Install dependencies RUN bun install -# Build the project -RUN bun build index.ts --compile --minify --sourcemap --target bun --outfile ./run - -FROM oven/bun:alpine AS runner -LABEL maintainer="@imnya" - -# Set the working directory -WORKDIR /code -RUN mkdir -p /code/app - -# Copy the built files from the build stage -COPY --from=build /code/app/run /code/app/run -COPY --from=build /code/app/run.sh /code/app/run.sh - -RUN mkdir -p /code/app/temp - # Set timezone to Asia/Seoul RUN apk add --no-cache tzdata \ && cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime \ diff --git a/app/lib/comcigan.ts b/app/lib/comcigan.ts index 54ea40f..3239877 100644 --- a/app/lib/comcigan.ts +++ b/app/lib/comcigan.ts @@ -1,8 +1,8 @@ import Comcigan from '@imnyang/comcigan.ts' -const comcigan = new Comcigan() - export async function getTimetable({ schoolId, grade, classNum, weekday }: { schoolId: number, grade: number, classNum: number, weekday: number }) { + const comcigan = new Comcigan() + return await comcigan.getTimetable(schoolId, grade, classNum, weekday, false) } diff --git a/app/run.sh b/app/run.sh index e2ddac2..05c37dc 100644 --- a/app/run.sh +++ b/app/run.sh @@ -1,3 +1,3 @@ cd /code/app -./run \ No newline at end of file +bun run ./index.ts \ No newline at end of file