Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1cf854d27 | ||
|
|
972ee67f53 | ||
|
|
9ecfdef62b | ||
|
|
e56f0883cf |
11
dockerfile
11
dockerfile
@@ -1,17 +1,20 @@
|
|||||||
# Use oven/bun as parent image
|
# Use oven/bun as parent image
|
||||||
FROM oven/bun:latest
|
FROM oven/bun:1.0.27
|
||||||
|
|
||||||
# Change the working directory on the Docker image to /app
|
# Change the working directory on the Docker image to /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package.json and package-lock.json to the /app directory
|
# Copy package.json and package-lock.json to the /app directory
|
||||||
COPY . .
|
COPY package.json ./
|
||||||
|
COPY bun.lockb ./
|
||||||
|
COPY src ./src
|
||||||
|
COPY tsconfig.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN bun install
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
# Expose application port
|
# Expose application port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
CMD bun start
|
CMD ["bun", "start"]
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "legica-dana",
|
"name": "legica-dana",
|
||||||
"version": "2.0.5",
|
"version": "2.0.6",
|
||||||
"main": "src/app.ts",
|
"main": "src/app.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "bun src/app.ts"
|
"start": "bun run src/app.ts"
|
||||||
},
|
},
|
||||||
"author": "Fran Jurmanović <fjurma12@outlook.com>",
|
"author": "Fran Jurmanović <fjurma12@outlook.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { Elysia, t } from "elysia";
|
|||||||
import { swagger } from "@elysiajs/swagger";
|
import { swagger } from "@elysiajs/swagger";
|
||||||
import { basicAuth, BasicAuthError } from "@core";
|
import { basicAuth, BasicAuthError } from "@core";
|
||||||
import pino from "pino";
|
import pino from "pino";
|
||||||
import staticPlugin from "@elysiajs/static";
|
|
||||||
import cron from "@elysiajs/cron";
|
import cron from "@elysiajs/cron";
|
||||||
|
|
||||||
const client: Client = new Client();
|
const client: Client = new Client();
|
||||||
@@ -259,7 +258,6 @@ const app = new Elysia()
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.use(staticPlugin())
|
|
||||||
.use(taskPlugin)
|
.use(taskPlugin)
|
||||||
.use(botPlugin)
|
.use(botPlugin)
|
||||||
.listen(config.PORT);
|
.listen(config.PORT);
|
||||||
|
|||||||
Reference in New Issue
Block a user