@cloud-cli/d0 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +5 -1
- package/README.md +4 -0
- package/package.json +2 -1
package/Dockerfile
CHANGED
|
@@ -4,14 +4,18 @@ USER root
|
|
|
4
4
|
WORKDIR /home/app
|
|
5
5
|
COPY . /home/app
|
|
6
6
|
ENV CI=true
|
|
7
|
-
RUN
|
|
7
|
+
RUN npm install --global pnpm@12.3.4
|
|
8
|
+
RUN pnpm i && pnpm build && rm -rf node_modules/ src/
|
|
8
9
|
|
|
9
10
|
FROM ghcr.io/cloud-cli/node:latest
|
|
10
11
|
|
|
12
|
+
USER root
|
|
11
13
|
ENV NODE_ENV=production
|
|
12
14
|
ENV DATA_PATH=/home/app/data
|
|
13
15
|
WORKDIR /home/app
|
|
14
16
|
COPY --from=builder --chown=node:node /home/app/ ./
|
|
17
|
+
RUN npm install --global pnpm@12.3.4
|
|
15
18
|
RUN pnpm install --prod --frozen-lockfile && pnpm rebuild better-sqlite3
|
|
16
19
|
RUN mkdir -p /home/app/data && chown node:node /home/app/data
|
|
17
20
|
VOLUME ["/home/app/data"]
|
|
21
|
+
USER node
|
package/README.md
CHANGED
|
@@ -68,3 +68,7 @@ Otherwise, it will be available at `http://localhost:PORT/` and serve a single d
|
|
|
68
68
|
| MAX_DATABASES | Maximum number of database connections kept open (default: `32`) |
|
|
69
69
|
| MAX_BODY_BYTES | Maximum JSON request size (default: `1048576`) |
|
|
70
70
|
| SLOW_QUERY_MS | Log slow queries in `DEBUG` mode (default: `1000`) |
|
|
71
|
+
|
|
72
|
+
## Development
|
|
73
|
+
|
|
74
|
+
This project uses pnpm `12.3.4`. The workspace explicitly permits the `better-sqlite3` native install script; it must run during Docker builds so the platform-specific SQLite binding is present in the final image.
|