add docker to project

This commit is contained in:
2025-08-27 18:15:55 +02:00
parent 49d7dd4b9e
commit d15f2e2d36
4 changed files with 23 additions and 2 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM bun:latest
WORKDIR /app
COPY package.json bun.lock ./
COPY . .
RUN bun run build
EXPOSE 9123
CMD ["bun", "run", "start"]

8
docker-compose.yml Normal file
View File

@@ -0,0 +1,8 @@
services:
monitor-im-flur:
build: .
ports:
- "9123:9123"
environment:
- NODE_ENV=production
restart: unless-stopped

View File

@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview"
},

View File

@@ -5,7 +5,7 @@ class Flatastic {
this.apikey = apikey;
}
async request(url: stringany) {
async request(url: string) {
const headers = {
accept: "application/json, text/plain, */*",
"accept-language":