Skip to content

Commit bd36158

Browse files
committed
Add package-lock.json and use npm ci for reproducible builds
1 parent c946c78 commit bd36158

File tree

3 files changed

+60
-3
lines changed

3 files changed

+60
-3
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
.DS_Store
88
Thumbs.db
99

10-
# IDE
10+
# IDE / tools
1111
.vscode
1212
.idea
13+
.claude
1314
*.swp
1415
*.swo
1516
*~
1617

18+
# Dependencies
19+
node_modules
20+
1721
# Docker
1822
*.log
1923
data

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ RUN npm install -g openclaw@2026.2.25
1818
ENV NPM_CONFIG_PREFIX=/data/.npm-global
1919

2020
# Install setup server dependencies (node-pty needs build tools, do this as root)
21-
COPY package.json /app/package.json
22-
RUN cd /app && npm install --omit=dev && chown -R node:node /data
21+
COPY package.json package-lock.json /app/
22+
RUN cd /app && npm ci --omit=dev && chown -R node:node /data
2323

2424
# Switch to non-root user
2525
RUN echo "node ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

package-lock.json

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)