diff --git a/Dockerfile b/Dockerfile index 5ccb256..fdbb0b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:11.6-slim as builder +FROM debian:12-slim as builder WORKDIR /app @@ -14,7 +14,7 @@ RUN /root/.bun/bin/bun install # ? ------------------------- -FROM gcr.io/distroless/base-debian11 +FROM gcr.io/distroless/base-debian12 WORKDIR /app diff --git a/bun.lockb b/bun.lockb index 2b1395a..d945ecb 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 3efa3a6..077b3b6 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "dev": "bun run --hot src/index.ts" }, "dependencies": { - "@elysiajs/cors": "0.7.2", - "@elysiajs/swagger": "0.7.4", + "@elysiajs/cors": "0.8.0", + "@elysiajs/swagger": "0.8.5", "cheerio": "1.0.0-rc.12", - "elysia": "0.7.29", + "elysia": "0.8.17", "elysia-rate-limit": "2.0.0" }, "devDependencies": { diff --git a/src/index.ts b/src/index.ts index 6dd6d07..7ffdae5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,28 +25,6 @@ const app = new Elysia() .use( swagger({ exclude: ['/', '/ping'], - // swagger: { - // schemes: ['https'], - // info: { - // title: 'Thai Lotto API', - // description: 'API สำหรับแสดงเลขผลสลากกินแบ่ง', - // version: '3.0.0', - // }, - // externalDocs: { - // description: 'GitHub', - // url: 'https://github.com/rayriffy/thai-lotto-api#api', - // }, - // tags: [ - // { - // name: 'lotto', - // description: 'Endpoint related to Lotto API', - // externalDocs: { - // description: 'API Documentation', - // url: 'https://github.com/rayriffy/thai-lotto-api#api', - // }, - // }, - // ], - // }, }) ) .model(model) @@ -208,5 +186,5 @@ const app = new Elysia() .listen(process.env.PORT ?? 3000) console.log( - `🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}` + `🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}` )