add docker to project
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
8
docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
monitor-im-flur:
|
||||
build: .
|
||||
ports:
|
||||
- "9123:9123"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
restart: unless-stopped
|
||||
@@ -5,7 +5,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"build": "vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user