Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:20

COPY ./src /app
WORKDIR /app
RUN npm install

CMD node app.js
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3.9"
services:
app:
build:
context: .
ports:
- 8080:8080
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ let handlers = [
let user = conn.session.get('user')
let uid = conn.session.get('id')
let htmlParams = {}
let params = qs.parse(conn.location.search.substring(1))
let params = qs.parse(conn.location.search?.substring(1))
let q = params.q || ''
let sql

Expand Down
4 changes: 2 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "Yosuke HASEGAWA",
"license": "MIT",
"dependencies": {
"libxmljs": "^0.18.7",
"sqlite3": "^3.1.8"
"libxmljs": "^1.0.11",
"sqlite3": "^5.1.7"
}
}