6 Commits

Author SHA1 Message Date
Fran Jurmanović
3c6bdeab60 add build script 2024-05-20 23:18:22 +02:00
Fran Jurmanović
11a26bff83 version increase 2024-04-17 20:54:09 +02:00
Fran Jurmanović
e1cf854d27 remove static plugin 2024-04-17 20:53:36 +02:00
Fran Jurmanović
972ee67f53 remove static plugin 2024-04-17 20:49:05 +02:00
Fran Jurmanović
9ecfdef62b update dockerfile 2024-04-17 20:39:46 +02:00
Fran Jurmanović
e56f0883cf increase version 2024-03-02 14:50:29 +01:00
4 changed files with 12 additions and 8 deletions

BIN
bun.lockb

Binary file not shown.

View File

@@ -1,17 +1,20 @@
# 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
WORKDIR /app
# 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
RUN bun install
RUN bun install --frozen-lockfile
# Expose application port
EXPOSE 3000
# Start the application
CMD bun start
CMD ["bun", "start"]

View File

@@ -1,9 +1,11 @@
{
"name": "legica-dana",
"version": "2.0.5",
"version": "2.0.7",
"main": "src/app.ts",
"scripts": {
"start": "bun src/app.ts"
"start": "bun run src/app.ts",
"build-script": "bun build src/app.ts --outdir dist --target bun",
"start-build": "bun run dist/app.js"
},
"author": "Fran Jurmanović <fjurma12@outlook.com>",
"license": "MIT",
@@ -18,6 +20,7 @@
"discord.js": "^12.5.1",
"dotenv": "^8.2.0",
"elysia": "^0.7.15",
"ffmpeg-static": "^5.2.0",
"lodash-es": "^4.17.21",
"minimatch": "^9.0.3",
"pino": "^8.15.4",

View File

@@ -5,7 +5,6 @@ import { Elysia, t } from "elysia";
import { swagger } from "@elysiajs/swagger";
import { basicAuth, BasicAuthError } from "@core";
import pino from "pino";
import staticPlugin from "@elysiajs/static";
import cron from "@elysiajs/cron";
const client: Client = new Client();
@@ -259,7 +258,6 @@ const app = new Elysia()
},
})
)
.use(staticPlugin())
.use(taskPlugin)
.use(botPlugin)
.listen(config.PORT);