diff --git a/Dockerfile b/Dockerfile index 30e5f18..b565095 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/README.md b/README.md index cd22095..62d6317 100644 --- a/README.md +++ b/README.md @@ -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' \ diff --git a/package.json b/package.json index 2522ee5..eb651a8 100644 --- a/package.json +++ b/package.json @@ -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": {