Skip to content
Merged
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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WORKDIR /opt/geocontext
COPY package.json package-lock.json tsconfig.json ./
RUN npm ci
COPY src src/
COPY scripts scripts/
RUN npm run build

FROM node:22-alpine
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://github.com/ignfab/geocontext#readme",
"scripts": {
"clean:dist": "rm -rf dist",
"clean:dist": "node scripts/dist-clean.js",
"build": "npm run clean:dist && tsc && npx mcp-build",
"watch": "tsc --watch",
"start": "node dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions scripts/dist-clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { rmSync } from 'fs';

rmSync('dist', { recursive: true, force: true });
Loading