idkwtfissue
This commit is contained in:
parent
6e092c032d
commit
8942051713
3 changed files with 3 additions and 19 deletions
16
Dockerfile
16
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 \
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import Comcigan from '@imnyang/comcigan.ts'
|
||||
|
||||
export async function getTimetable({ schoolId, grade, classNum, weekday }: { schoolId: number, grade: number, classNum: number, weekday: number }) {
|
||||
const comcigan = new Comcigan()
|
||||
|
||||
export async function getTimetable({ schoolId, grade, classNum, weekday }: { schoolId: number, grade: number, classNum: number, weekday: number }) {
|
||||
return await comcigan.getTimetable(schoolId, grade, classNum, weekday, false)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
cd /code/app
|
||||
|
||||
./run
|
||||
bun run ./index.ts
|
||||
Loading…
Add table
Add a link
Reference in a new issue