Skip to content

Commit

Permalink
feat: dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Feb 16, 2024
1 parent f1578f3 commit 18dea64
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 28 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:11.6-slim as builder
FROM debian:12-slim as builder

WORKDIR /app

Expand All @@ -14,7 +14,7 @@ RUN /root/.bun/bin/bun install

# ? -------------------------

FROM gcr.io/distroless/base-debian11
FROM gcr.io/distroless/base-debian12

WORKDIR /app

Expand Down
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
24 changes: 1 addition & 23 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}`
)

0 comments on commit 18dea64

Please sign in to comment.