diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cda00a4 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1fa8183 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +services: + monitor-im-flur: + build: . + ports: + - "9123:9123" + environment: + - NODE_ENV=production + restart: unless-stopped diff --git a/package.json b/package.json index 4ed0ca9..60e3e9e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc -b && vite build", + "build": "vite build", "lint": "eslint .", "preview": "vite preview" }, diff --git a/src/api/flatastic.ts b/src/api/flatastic.ts index 4170300..d32bd74 100644 --- a/src/api/flatastic.ts +++ b/src/api/flatastic.ts @@ -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":