fix: dockerized playwright (#18)

This commit is contained in:
Indrawan I.
2026-03-14 11:52:05 +07:00
committed by GitHub
parent e63195035d
commit 90d858ae9d
3 changed files with 11 additions and 3 deletions

View File

@@ -1,9 +1,17 @@
FROM node:22
WORKDIR /srv/app
COPY package*.json ./
RUN npm install
# install browser + system deps
RUN npx playwright install --with-deps chromium
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["node", "build/src/index.js"]

View File

@@ -111,11 +111,11 @@ USER_AGENT = "lustpress/8.0.1 Node.js/22.22.0"
docker pull ghcr.io/sinkaroid/lustpress:latest
docker run -p 3000:3000 -d ghcr.io/sinkaroid/lustpress:latest
### Docker (your own)
### Docker (adjust your own)
```bash
docker run -d \
--name=lustpress \
-p 3000:3000 \
-p 3028:3000 \
-e REDIS_URL='redis://default:somenicepassword@redis-666.c10.us-east-6-6.ec666.cloud.redislabs.com:1337' \
-e EXPIRE_CACHE='1' \
-e USER_AGENT='lustpress/8.0.1 Node.js/22.22.0' \

View File

@@ -1,6 +1,6 @@
{
"name": "lustpress",
"version": "8.1.2-alpha",
"version": "8.1.3-alpha",
"description": "RESTful and experimental API for PH and other R18 websites",
"main": "build/src/index.js",
"scripts": {