Skip to content

Commit

Permalink
feat: bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed May 8, 2023
1 parent 0730425 commit 4cb5a52
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 28 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ COPY bun.lockb .
RUN /root/.bun/bin/bun install

# ? -------------------------
FROM gcr.io/distroless/base
FROM gcr.io/distroless/base-debian11

WORKDIR /app

COPY --from=builder /root/.bun/bin/bun bun
COPY --from=builder /app/node_modules node_modules

COPY src src
# COPY public public
# COPY tsconfig.json .

ENV ENV production
ENV PORT 3000
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 @@ -6,10 +6,10 @@
"dev": "bun run --hot src/index.ts"
},
"dependencies": {
"@elysiajs/cors": "^0.1.0",
"@elysiajs/swagger": "^0.2.0-rc.0",
"@elysiajs/cors": "^0.3.0",
"@elysiajs/swagger": "^0.4.0",
"cheerio": "^1.0.0-rc.12",
"elysia": "^0.2.0-rc.0",
"elysia": "^0.4.15",
"elysia-rate-limit": "^1.0.3"
},
"devDependencies": {
Expand Down
44 changes: 22 additions & 22 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,28 @@ 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',
},
},
],
},
// 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',
// },
// },
// ],
// },
})
)
.setModel(model)
Expand Down

0 comments on commit 4cb5a52

Please sign in to comment.